Skip to content

Commit 36d1d89

Browse files
committed
Add types
1 parent d19a654 commit 36d1d89

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

index.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export namespace Fonts {
2+
interface IFontsFigmaItem {
3+
postscript: string;
4+
family: string;
5+
id: string;
6+
style?: string;
7+
weight?: number;
8+
stretch?: number;
9+
italic?: boolean;
10+
}
11+
12+
interface IFonts {
13+
[path: string]: Array<IFontsFigmaItem>
14+
}
15+
}
16+
17+
declare module 'figma-linux-rust-binding' {
18+
function getFonts(dirs: string[], callback: (err: Error, fonts: Fonts.IFonts) => void): void;
19+
}

0 commit comments

Comments
 (0)