Added the basics of keybindings + zooming
This commit is contained in:
parent
970d43187d
commit
057c2268ac
49 changed files with 1059 additions and 76 deletions
src/modules/activation/helpers
8
src/modules/activation/helpers/toFunction.ts
Normal file
8
src/modules/activation/helpers/toFunction.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export const toFunction = <T extends unknown[]>(
|
||||
source: string,
|
||||
...args: string[]
|
||||
): ((...args: T) => void) => {
|
||||
return new Function(`return (${args.join(',')}) => {
|
||||
${source}
|
||||
}`)()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue