Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1465

Fix the type of PropertyType

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Hi!
      Here is the diff that solved my problem:

      Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      diff --git a/node_modules/realm/types/index.d.ts b/node_modules/realm/types/index.d.ts
      index b6b205e..3ed2a6e 100644
      --- a/node_modules/realm/types/index.d.ts
      +++ b/node_modules/realm/types/index.d.ts
      @@ -36,7 +36,7 @@ declare namespace Realm {
            * PropertyType
            * @see { @link https://realm.io/docs/javascript/latest/api/Realm.html#~PropertyType }
            */
      -    type PropertyType = string | 'bool' | 'int' | 'float' | 'double' | 'decimal128' | 'objectId' | 'string' | 'data' | 'date' | 'list' | 'linkingObjects';
      +    type PropertyType = 'bool' | 'int' | 'float' | 'double' | 'decimal128' | 'objectId' | 'string' | 'data' | 'date' | 'list' | 'linkingObjects';
       
           /**
            * ObjectSchemaProperty
      

            Assignee:
            andrew.meyer@mongodb.com Andrew Meyer
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: