fixed issue with isSpell no longer being defined
This commit is contained in:
@@ -1,21 +1,13 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS';
|
||||
import { TypedSimpleSchema } from '/imports/api/utility/TypedSimpleSchema';
|
||||
import { InferType, TypedSimpleSchema } from '/imports/api/utility/TypedSimpleSchema';
|
||||
import type { Simplify } from 'type-fest';
|
||||
|
||||
export interface Reference {
|
||||
collection: string,
|
||||
id: string,
|
||||
}
|
||||
|
||||
export interface TreeDoc {
|
||||
_id: string,
|
||||
root: Reference,
|
||||
parentId?: string,
|
||||
left: number,
|
||||
right: number,
|
||||
removed?: true,
|
||||
}
|
||||
|
||||
const RefSchema = TypedSimpleSchema.from({
|
||||
id: {
|
||||
type: String,
|
||||
@@ -84,5 +76,7 @@ export const treeDocFields = {
|
||||
right: 1,
|
||||
}
|
||||
|
||||
export type TreeDoc = Simplify<{ _id: string } & InferType<typeof ChildSchema>>;
|
||||
|
||||
export default ChildSchema;
|
||||
export { RefSchema };
|
||||
|
||||
Reference in New Issue
Block a user