Skip to content

Commit ceda1f4

Browse files
committed
Type preset-bootstrap
1 parent e91810b commit ceda1f4

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

packages/preset-bootstrap/src/index.js renamed to packages/preset-bootstrap/src/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export const fonts = {
5353
heading: 'inherit',
5454
monospace:
5555
'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
56+
// NOTE(@mxstbr): TypeScript does not let us do the self-references below if we don't provide "default" values
57+
sans: '',
5658
}
5759
fonts.sans = fonts.body
5860

@@ -61,11 +63,16 @@ export const fontWeights = {
6163
heading: 500,
6264
bold: 700,
6365
light: 300,
66+
// NOTE(@mxstbr): TypeScript does not let us do the self-references below if we don't provide "default" values
67+
normal: 0,
68+
display: 0,
6469
}
6570
fontWeights.normal = fontWeights.body
6671
fontWeights.display = fontWeights.light
6772

68-
export const fontSizes = [
73+
export const fontSizes: Array<string> & {
74+
lead?: string
75+
} = [
6976
'0.75rem', // '80%',
7077
'0.875rem',
7178
'1rem',
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"resolveJsonModule": true,
4+
"esModuleInterop": true,
5+
"moduleResolution": "node",
6+
"strict": true
7+
}
8+
}

0 commit comments

Comments
 (0)