Improved typing of Creature Properties
This commit is contained in:
@@ -16,7 +16,7 @@ export interface TreeDoc {
|
||||
removed?: true,
|
||||
}
|
||||
|
||||
const RefSchema = new TypedSimpleSchema({
|
||||
const RefSchema = TypedSimpleSchema.from({
|
||||
id: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
@@ -27,7 +27,7 @@ const RefSchema = new TypedSimpleSchema({
|
||||
},
|
||||
});
|
||||
|
||||
const ChildSchema = new TypedSimpleSchema({
|
||||
const ChildSchema = TypedSimpleSchema.from({
|
||||
root: {
|
||||
type: Object,
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import { TypedSimpleSchema } from '/imports/api/utility/TypedSimpleSchema';
|
||||
|
||||
let SoftRemovableSchema = new TypedSimpleSchema({
|
||||
let SoftRemovableSchema = TypedSimpleSchema.from({
|
||||
'removed': {
|
||||
type: Boolean,
|
||||
optional: true,
|
||||
|
||||
Reference in New Issue
Block a user