Skip to content

Commit

Permalink
feat: add type for platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Apr 21, 2020
1 parent 9ddf78a commit 10fb70b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/platforms.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export type Platforms = 'common' | 'deskpad' | 'desktop' | 'touch' | 'touch-pad' | 'touch-phone'

/**
* Platform layers with levels.
*/
export const platforms = new Map<string, string[]>()
export const platforms = new Map<Platforms, Platforms[]>()

platforms.set('common', ['common'])
platforms.set('deskpad', ['common', 'deskpad'])
Expand Down

0 comments on commit 10fb70b

Please sign in to comment.