Added the basics of keybindings + zooming

This commit is contained in:
Matei Adriel 2019-07-19 15:25:01 +03:00
parent 970d43187d
commit 057c2268ac
49 changed files with 1059 additions and 76 deletions
src/modules/activation/helpers

View 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}
}`)()
}