API Reference / @gtkx/navigation / PrivateValueStore
Class: PrivateValueStore<T>
Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/types.d.ts:257
Type Parameters
T
T extends [any, any, any]
Constructors
Constructor
new PrivateValueStore<
T>():PrivateValueStore<T>
Returns
PrivateValueStore<T>
Properties
?
protectedoptional?:T
Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/types.d.ts:268
UGLY HACK! DO NOT USE THE TYPE!!!
TypeScript requires a type to be used to be able to infer it. The type should exist as its own without any operations such as union. So we need to figure out a way to store this type in a property. The problem with a normal property is that it shows up in intelliSense. Adding private keyword works, but the annotation is stripped away in declaration. Turns out if we use an empty string, it doesn't show up in intelliSense.