Skip to content

Commit

Permalink
Add nameLocal doc
Browse files Browse the repository at this point in the history
  • Loading branch information
FreePhoenix888 committed Feb 9, 2024
1 parent 4662ae2 commit b1c8659
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imports/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,9 @@ export class DeepClient<L extends Link<number> = Link<number>> implements DeepCl
return containLink?.value?.value;
};

/**
* Returns a name of a link {@link input} that is located in a value of a contain link pointing to the link {@link input} according to links stored in minilinks
*/
nameLocal(input: Link<number> | number): string | undefined {
const id = typeof(input) === 'number' ? input : input?.id;
if (!id) return;
Expand Down

0 comments on commit b1c8659

Please sign in to comment.