-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from novemberfiveco-engineering/master
Create seperate type files.
- Loading branch information
Showing
3 changed files
with
35 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
declare module 'react-native-palette-full' { | ||
export enum ISwatchType { | ||
vibrant = 'Vibrant', | ||
vibrantDark = 'Vibrant Dark', | ||
vibrantLight = 'Vibrant Light', | ||
muted = 'Video', | ||
mutedDark = 'Muted Dark', | ||
mutedLight = 'Muted Light', | ||
} | ||
|
||
export interface ISwatch { | ||
color: string; | ||
} | ||
|
||
export interface IPalette { | ||
[key: string]: ISwatch; | ||
} | ||
|
||
export default class Palette { | ||
static getNamedSwatchesFromUrl(url: string): IPalette; | ||
|
||
static getAllSwatchesFromUrl(url: string): ISwatch[]; | ||
|
||
static getNamedSwatches(path: string): IPalette; | ||
|
||
static getAllSwatches(path: string): ISwatch[]; | ||
} | ||
} |
This file contains 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
This file contains 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