Skip to content

Instantly share code, notes, and snippets.

@windwp
Created June 1, 2018 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save windwp/836d2fcd1c77e0ca202b9abda9eac9c0 to your computer and use it in GitHub Desktop.
Save windwp/836d2fcd1c77e0ca202b9abda9eac9c0 to your computer and use it in GitHub Desktop.
typescript snipplet
export namespace Data11 {
export type PlatformEnum = 'android' | 'ios' | 'windows';
export const PlatformEnum = {
Android: 'android' as PlatformEnum,
Ios: 'ios' as PlatformEnum,
Windows: 'windows' as PlatformEnum
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment