mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 07:14:23 +00:00
Docs
This commit is contained in:
parent
2db3ea5853
commit
fdcedf86f7
@ -133,8 +133,9 @@ class Realm {
|
|||||||
static automaticSyncConfiguration(user) {}
|
static automaticSyncConfiguration(user) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a template object where all optional fields are `undefined` and all required fields have the default
|
* Creates a template object for a Realm model class where all optional fields are `undefined` and all required
|
||||||
* value for the given data type, i.e. `0`, false and `""`.
|
* fields have the default value for the given data type, either the value set by the `default` property in the
|
||||||
|
* schema or the default value for the datatype if the schema doesn't specify one, i.e. `0`, false and `""`.
|
||||||
*
|
*
|
||||||
* @param {Realm~ObjectSchema} schema object describing the class
|
* @param {Realm~ObjectSchema} schema object describing the class
|
||||||
*/
|
*/
|
||||||
|
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -621,7 +621,7 @@ declare class Realm {
|
|||||||
static automaticSyncConfiguration(user?: Realm.Sync.User): string;
|
static automaticSyncConfiguration(user?: Realm.Sync.User): string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FIXME
|
* @param {Realm.ObjectSchema} object schema describing the object that should be created.
|
||||||
* @returns {T}
|
* @returns {T}
|
||||||
*/
|
*/
|
||||||
static createTemplateObject<T>(objectSchema: Realm.ObjectSchema): T;
|
static createTemplateObject<T>(objectSchema: Realm.ObjectSchema): T;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user