Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created September 5, 2020 22:11
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 dagda1/a346c325b18871babb39433d78179472 to your computer and use it in GitHub Desktop.
Save dagda1/a346c325b18871babb39433d78179472 to your computer and use it in GitHub Desktop.
export type BundlerState =
| { type: 'UNBUNDLED' }
| { type: 'BUILDING'; warnings: BundlerWarning[] }
| { type: 'GREEN'; path: string; warnings: BundlerWarning[] }
| { type: 'ERRORED'; error: BundlerError }
export type BundlerTypes = Pick<BundlerState, 'type'>['type'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment