Skip to content

Instantly share code, notes, and snippets.

@ancyrweb
Last active April 9, 2019 17:59
Show Gist options
  • Select an option

  • Save ancyrweb/216f4b8c3025750ebe95d35f4c2ff923 to your computer and use it in GitHub Desktop.

Select an option

Save ancyrweb/216f4b8c3025750ebe95d35f4c2ff923 to your computer and use it in GitHub Desktop.
TypeScript basic types
export type OrNull<T> = T | null;
export type OrUndefined<T> = T | undefined;
export type Maybe<T> = OrNull<OrUndefined<T>>;
export type StringMap<V> = {[key: string]: V}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment