Last active
September 24, 2015 08:32
-
-
Save okunokentaro/bd54a3a3ce30b023f926 to your computer and use it in GitHub Desktop.
bemmer.d.ts
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
declare module 'bemmer' { | |
export default bemmer; | |
} | |
declare namespace bemmer { | |
export function create<T>(...classNames: Array<string>): Builder<T>; | |
export interface Builder<T> { | |
(): string; | |
(elements: string): string; | |
(elements: string, modifiers: T): string; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Builder
の第二引数が存在するときの第一引数、非String
値も許容してる的なことができるように