Open dagda1 opened 2 years ago
Currently, it is too easy to pass the wrong config in when creating a simulation because of this interface
export interface SimulationOptions { options?: Record<string, unknown>;
The code below will type check even though clientId is cased incorrectly
clientId
createSimulation(simulator: "auth0", options: { options:{ clientId: "[your client-id]"
This codesandbox was a quick spike for one way this could be significantly improved.
Currently, it is too easy to pass the wrong config in when creating a simulation because of this interface
The code below will type check even though
clientId
is cased incorrectlyThis codesandbox was a quick spike for one way this could be significantly improved.