Skip to content

Commit

Permalink
chore: adds _unstable suffix on dangerous method
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus committed Jul 11, 2023
1 parent 7011cd6 commit f4a1849
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export interface ImmutableSet<Value> {
* Exposes the internal set used to store values.
* This is an internal API and should not be used directly.
*/
dangerousGetInternalSet(): Set<Value>;
// eslint-disable-next-line @typescript-eslint/naming-convention
dangerousGetInternalSet_unstable(): Set<Value>;
}

const emptyImmutableSet = createImmutableSet<never>();
Expand Down Expand Up @@ -58,7 +59,8 @@ function dangerouslyCreateImmutableSet<Value>(internalSet: Set<Value>): Immutabl
[Symbol.iterator]() {
return internalSet[Symbol.iterator]();
},
dangerousGetInternalSet: () => internalSet,
// eslint-disable-next-line @typescript-eslint/naming-convention
dangerousGetInternalSet_unstable: () => internalSet,
};
}

Expand Down

0 comments on commit f4a1849

Please sign in to comment.