kopia lustrzana https://github.com/Tldraw/Tldraw
75 wiersze
1.9 KiB
TypeScript
75 wiersze
1.9 KiB
TypeScript
export {
|
|
areArraysShallowEqual,
|
|
compact,
|
|
dedupe,
|
|
last,
|
|
minBy,
|
|
partition,
|
|
rotateArray,
|
|
} from './lib/array'
|
|
export {
|
|
Result,
|
|
assert,
|
|
assertExists,
|
|
exhaustiveSwitchError,
|
|
promiseWithResolve,
|
|
type ErrorResult,
|
|
type OkResult,
|
|
} from './lib/control'
|
|
export { debounce } from './lib/debounce'
|
|
export { annotateError, getErrorAnnotations } from './lib/error'
|
|
export { FileHelpers } from './lib/file'
|
|
export { noop, omitFromStackTrace, throttle } from './lib/function'
|
|
export { getHashForBuffer, getHashForObject, getHashForString, lns } from './lib/hash'
|
|
export { getFirstFromIterable } from './lib/iterable'
|
|
export type { JsonArray, JsonObject, JsonPrimitive, JsonValue } from './lib/json-value'
|
|
export { MediaHelpers } from './lib/media'
|
|
export { invLerp, lerp, modulate, rng } from './lib/number'
|
|
export {
|
|
areObjectsShallowEqual,
|
|
filterEntries,
|
|
getOwnProperty,
|
|
hasOwnProperty,
|
|
mapObjectMapValues,
|
|
objectMapEntries,
|
|
objectMapFromEntries,
|
|
objectMapKeys,
|
|
objectMapValues,
|
|
} from './lib/object'
|
|
export { PngHelpers } from './lib/png'
|
|
export { type IndexKey } from './lib/reordering/IndexKey'
|
|
export {
|
|
ZERO_INDEX_KEY,
|
|
getIndexAbove,
|
|
getIndexBelow,
|
|
getIndexBetween,
|
|
getIndices,
|
|
getIndicesAbove,
|
|
getIndicesBelow,
|
|
getIndicesBetween,
|
|
sortByIndex,
|
|
validateIndexKey,
|
|
} from './lib/reordering/reordering'
|
|
export { sortById } from './lib/sort'
|
|
export {
|
|
clearLocalStorage,
|
|
clearSessionStorage,
|
|
deleteFromLocalStorage,
|
|
deleteFromSessionStorage,
|
|
getFromLocalStorage,
|
|
getFromSessionStorage,
|
|
setInLocalStorage,
|
|
setInSessionStorage,
|
|
} from './lib/storage'
|
|
export { fpsThrottle, throttleToNextFrame } from './lib/throttle'
|
|
export type { Expand, RecursivePartial, Required } from './lib/types'
|
|
export {
|
|
STRUCTURED_CLONE_OBJECT_PROTOTYPE,
|
|
isDefined,
|
|
isNativeStructuredClone,
|
|
isNonNull,
|
|
isNonNullish,
|
|
structuredClone,
|
|
} from './lib/value'
|
|
export { warnDeprecatedGetter } from './lib/warnDeprecatedGetter'
|