Created
December 29, 2019 13:17
-
-
Save WimJongeneel/5f76d59773672575c3804d5cfd80831f 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
const handler = { | |
get(_, name: string) => createIndexExpression(name), | |
} | |
type Fake<T extends object> = { | |
[k in keyof T]: Expr | |
} | |
const fakeBlog: Fake<Blog> = new Proxy<Blog>(null, handler); | |
fakeBlog.Id // { kind: 'index', id: 'Id' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment