Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚩 Add strict flag #42

Closed
wants to merge 1 commit into from
Closed

Commits on Jul 12, 2021

  1. 🚩 Add strict flag

    This change adds a `strict` flag to control whether we have the stricter
    type checking introduced in ottypes#40
    
    Strict mode will be off by default (to maintain compatibility with old
    `json0` versions).
    
    In order to add this flag, we also add a new `options` object to the
    `type`. Strict mode is enabled on the type by setting the flag:
    
    ```js
    type.options.strict = true
    ```
    
    Note that `text0` will share the same options as `json0` (ie enabling
    strict mode for `json0` also enables it for `text0`).
    
    In this change we also tidy up some unused utility functions from a
    previous commit.
    alecgibson committed Jul 12, 2021
    Configuration menu
    Copy the full SHA
    97819c3 View commit details
    Browse the repository at this point in the history