mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 17:30:46 +00:00
Fixed typescript strict issue of Statusbar, hostedUtils, StringUtils etc (#785)
This commit is contained in:
committed by
GitHub
parent
0bbf9de963
commit
397231dca2
@@ -1,8 +1,8 @@
|
||||
import create, { UseStore } from "zustand";
|
||||
|
||||
export interface NotebookSnapshotHooks {
|
||||
snapshot: string;
|
||||
error: string;
|
||||
snapshot?: string;
|
||||
error?: string;
|
||||
setSnapshot: (imageSrc: string) => void;
|
||||
setError: (error: string) => void;
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@ export async function fetchAccessData(portalToken: string): Promise<AccessInputM
|
||||
);
|
||||
}
|
||||
|
||||
export function useTokenMetadata(token: string): AccessInputMetadata {
|
||||
const [state, setState] = useState<AccessInputMetadata>();
|
||||
export function useTokenMetadata(token: string): AccessInputMetadata | undefined {
|
||||
const [state, setState] = useState<AccessInputMetadata | undefined>();
|
||||
|
||||
useEffect(() => {
|
||||
if (token) {
|
||||
|
||||
Reference in New Issue
Block a user