(name: string)
| 10 | import { toError } from "./utils"; |
| 11 | |
| 12 | function isValidSheetName(name: string): boolean { |
| 13 | if (typeof name !== "string") return false; |
| 14 | const uid = extractSheetUID(name); |
| 15 | return Boolean(uid) && uid !== "-1" && !uid.startsWith("-"); |
| 16 | } |
| 17 | |
| 18 | export const createSheetSlice: AppSliceCreator<SheetSlice> = (set, get) => ({ |
| 19 | sheetsByName: {}, |
no test coverage detected