Skip to content

Shared variable runtime checks #21

Open
@zoe-codez

Description

@zoe-codez

🪤 Context

There isn't any enforcement in the shared variables system that the value received is actually matches the type definitions that are declared. The easiest path to resolving this would be finding a way to integrate ts-runtime-checks.

In theory... should be able to take the provided type definitions from the user, convert those to a validation function (pre-compute), then use that logic to validate every set

📬 Caveats

Maybe as a strict mode? Unclear on the level of overlap with just regular type checking being used to block the code from running in the first place.

idea pile item

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions