Created
December 28, 2021 19:18
-
-
Save mpontus/7a50599f4741ea58badc3bced14ba561 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare function sequence<A, B>(s: { [K in keyof A]: (b: B) => A[K] }): ((b: B) => A);// [K in keyof S]: () | |
const s = sequence({ | |
typography(theme: Theme) { | |
return sequence({ | |
foo() { | |
return theme.space[0].toString(); | |
} | |
})(theme) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment