(oref: string, key: T)
| 153 | } |
| 154 | |
| 155 | function useOrefMetaKeyAtom<T extends keyof MetaType>(oref: string, key: T): MetaType[T] { |
| 156 | return useAtomValue(getOrefMetaKeyAtom(oref, key)); |
| 157 | } |
| 158 | |
| 159 | function getConnConfigKeyAtom<T extends keyof ConnKeywords>(connName: string, key: T): Atom<ConnKeywords[T]> { |
| 160 | if (isPreviewWindow()) return NullAtom as Atom<ConnKeywords[T]>; |
nothing calls this directly
no test coverage detected