-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript): fix types, add "test" file
- Loading branch information
1 parent
7dc9f23
commit e240017
Showing
6 changed files
with
48 additions
and
7 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
dist | ||
*.d.ts | ||
*.test-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
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,26 @@ | ||
import { hypostyle } from '.' | ||
import presets from './presets' | ||
|
||
declare module '.' { | ||
interface UserTheme { | ||
tokens: { | ||
color: { | ||
primary: 'blue' | ||
} | ||
} | ||
} | ||
} | ||
|
||
const o = hypostyle({ | ||
...presets, | ||
tokens: { | ||
color: { | ||
primary: 'blue' | ||
} | ||
} | ||
}) | ||
|
||
o.css(tokens => ({ | ||
c: tokens.color.primary, | ||
mx: [2, 4] | ||
})) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import * as lib from '.' | ||
|
||
export const tokens: lib.Tokens; | ||
export const breakpoints: lib.Unitless[]; | ||
export const shorthands: lib.Shorthands; | ||
export const macros: lib.Macros; |
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