Files
shakespeare/src/contexts/FSContext.ts
T

8 lines
224 B
TypeScript

import { createContext } from 'react';
import type { JSRuntimeFS } from '@/lib/JSRuntime';
export interface FSContextType {
fs: JSRuntimeFS;
}
export const FSContext = createContext<FSContextType | undefined>(undefined);