Skip to content

Commit 7f205fb

Browse files
authored
fix: align getImageSource with community package (#336)
1 parent 50f16b7 commit 7f205fb

File tree

5 files changed

+24
-11
lines changed

5 files changed

+24
-11
lines changed

build/createIconSet.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ export interface Icon<G extends string, FN extends string> {
6868
glyphMap: GlyphMap<G>;
6969
getRawGlyphMap: () => GlyphMap<G>;
7070
getFontFamily: () => FN;
71-
getImageSource: (name: G, size: number, color: ColorValue) => Promise<string | null>;
71+
getImageSource: (name: G, size: number, color: ColorValue) => Promise<{
72+
uri: string;
73+
scale: number;
74+
} | null>;
7275
loadFont: () => Promise<void>;
7376
font: {
7477
[x: string]: any;

build/createIconSet.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/createIconSet.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)