• Kyle Keating's avatar
    Add coercion map for specific host-config values · ecff45cf
    Kyle Keating authored
    add `type-coercion.js` util with 4 methods. These are used on incoming the host-config values `openSidebar` and `requestConfigFromFrame` which may have an incompatible type upstream (via3) from what the client expects.
    
    - toInteger
    - toObject
    - toString
    - toBoolean
    
    These methods coerces specific values into types so that downstream (client) methods can make assumptions. This is part of the prep work to support via3 which will eventually only export strings values in the config.
    ecff45cf
Name
Last commit
Last update
..
integration Loading commit data...
annotation-fixtures.js Loading commit data...
bootstrap.js Loading commit data...
build-thread-test.js Loading commit data...
cross-origin-rpc-test.js Loading commit data...
fake-redux-store.js Loading commit data...
get-api-url-test.js Loading commit data...
group-fixtures.js Loading commit data...
host-config-test.js Loading commit data...
markdown-commands-test.js Loading commit data...
media-embedder-test.js Loading commit data...
render-markdown-test.js Loading commit data...
search-client-test.js Loading commit data...
service-config-test.js Loading commit data...
virtual-thread-list-test.js Loading commit data...
websocket-test.js Loading commit data...