Skip to content

Commit

Permalink
Normalize blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichon-msft committed Dec 18, 2024
1 parent 6deecb7 commit cf99c65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libraries/lookup-by-path/src/LookupByPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface IPathTrieNode<TItem extends {}> {
* The value that exactly matches the current relative path
*/
value: TItem | undefined;

/**
* Child nodes by subfolder
*/
Expand All @@ -20,6 +21,7 @@ interface IPrefixEntry {
* The prefix that was matched
*/
prefix: string;

/**
* The index of the first character after the matched prefix
*/
Expand All @@ -36,10 +38,12 @@ export interface IPrefixMatch<TItem extends {}> {
* The item that matched the prefix
*/
value: TItem;

/**
* The index of the first character after the matched prefix
*/
index: number;

/**
* The last match found (with a shorter prefix), if any
*/
Expand Down Expand Up @@ -135,6 +139,7 @@ export interface IReadonlyLookupByPath<TItem extends {}> extends Iterable<[strin
* ```
*/
entries(query?: string, delimiter?: string): IterableIterator<[string, TItem]>;

/**
* Iterates over the entries in this trie.
*
Expand Down Expand Up @@ -183,10 +188,12 @@ export class LookupByPath<TItem extends {}> implements IReadonlyLookupByPath<TIt
* The delimiter used to split paths
*/
public readonly delimiter: string;

/**
* The root node of the trie, corresponding to the path ''
*/
private readonly _root: IPathTrieNode<TItem>;

/**
* The number of entries in this trie.
*/
Expand Down

0 comments on commit cf99c65

Please sign in to comment.