-
Notifications
You must be signed in to change notification settings - Fork 24
/
custom.d.ts
34 lines (31 loc) · 610 Bytes
/
custom.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
interface Font {
family: string
style: string
}
declare module 'matrix-inverse' {
const fn: <T extends number[] | number[][]>(m: T) => T
export = fn
}
interface LetterStyle {
characters: string
fontSize?: number
fontName?: FontName
textCase?: TextCase
textDecoration?: TextDecoration
letterSpacing?: LetterSpacing
lineHeight?: LineHeight
fills?: Paint[]
textStyleId?: string
fillStyleId?: string
}
type LineStyle = LetterStyle[]
type FontStyleNames =
| 'fontSize'
| 'fontName'
| 'textCase'
| 'textDecoration'
| 'letterSpacing'
| 'lineHeight'
| 'fills'
| 'textStyleId'
| 'fillStyleId'