Skip to content

Commit

Permalink
fix: not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanahiro committed Mar 25, 2024
1 parent 887ea08 commit 70afd0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/render/glyph_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class GlyphManager {
static loadGlyphRange = loadGlyphRange;
static TinySDF = TinySDF;

constructor(requestManager: RequestManager, localIdeographFontFamily: string | false) {
constructor(requestManager: RequestManager, localIdeographFontFamily?: string | false) {
this.requestManager = requestManager;
this.localIdeographFontFamily = localIdeographFontFamily;
this.entries = {};
Expand Down
2 changes: 1 addition & 1 deletion src/style/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export type StyleOptions = {
* Set to `false`, to enable font settings from the map's style for these glyph ranges.
* Forces a full update.
*/
localIdeographFontFamily: string | false;
localIdeographFontFamily?: string | false;
};

/**
Expand Down

0 comments on commit 70afd0e

Please sign in to comment.