Interface Example

This file was automatically generated by joi-to-typescript Do not modify this file manually

interface Example {
    flags: {
        optional?: null | boolean;
        required: boolean;
    };
    foo?: "foo" | "bar" | "baz";
}

Properties

Properties

flags: {
    optional?: null | boolean;
    required: boolean;
}

Type declaration

  • Optional optional?: null | boolean
  • required: boolean
foo?: "foo" | "bar" | "baz"