Skip to content

@ue-too/being-portable / validateDefinition

函式: validateDefinition() ​

validateDefinition(document, options): ValidationResult

定義於: being-portable/src/api.ts:18

Checks an untrusted document without building a machine. With a host, also checks that the host supplies every declared effect with matching types.

Limits come from options.limits if given, else from the host, else the defaults.

參數 ​

document ​

unknown

options ​

host? ​

Host

limits? ​

Partial<Limits>

回傳 ​

ValidationResult