Skip to content

Commit

Permalink
Grunt update. Adding linebreak dependency for unicode-correct line br…
Browse files Browse the repository at this point in the history
…eak detection. Adding back directional marks into load-unbuilt-strings. Proper RichText line break handling. See phetsims/joist#843
  • Loading branch information
jonathanolson committed Aug 31, 2022
1 parent 080d989 commit 60c2c39
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions phet-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,21 @@ declare var TWEEN: { update: ( dt: number ) => void };
declare var phetSplashScreen: { dispose: () => void };
declare var phetio: Record<string, IntentionalAny>;

// Typing for linebreaker-1.1.0.js preload
declare type LineBreakerBreak = {
position: number;
required: boolean;
};
declare type LineBreakerType = {
nextBreak(): LineBreakerBreak | null;

// We make it iterable
[ Symbol.iterator ](): Iterator<LineBreakerBreak, undefined>;
};
declare var LineBreaker: {
new ( str: string ): LineBreakerType;
};

declare var assertions: {
enableAssert: () => void;
};
Expand Down

0 comments on commit 60c2c39

Please sign in to comment.