Last active
July 13, 2019 04:41
-
-
Save xiaoxiangmoe/bf5294336f15d0d040db20b178f5a2c8 to your computer and use it in GitHub Desktop.
genOpaqueType
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 genOpaqueType = x => "namespace _opaque{"+Array(x).fill().map((v,x)=>`declare const opaque_key_${x}:unique symbol;export interface t${x}{[opaque_key_${x}]:0}`).join(';')+"} /* prettier-ignore */ // tslint:disable-line" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment