Typescript#

Overview#

This generator will create Typescript interface definitions. Note that these have no effect on the resulting transpiled javascript code, but are useful for statically checking code.

Docs#

Command Line#

gen-typescript#

Generate typescript interfaces and types

See https://github.com/linkml/linkml-runtime.js

gen-typescript [OPTIONS] YAMLFILE

Options

-V, --version#

Show the version and exit.

-f, --format <format>#

Output format

Default:

text

Options:

text

--metadata, --no-metadata#

Include metadata in output

Default:

True

--useuris, --metauris#

Include metadata in output

Default:

True

-im, --importmap <importmap>#

Import mapping file

--log_level <log_level>#

Logging level

Default:

WARNING

Options:

CRITICAL | ERROR | WARNING | INFO | DEBUG

-v, --verbose#

verbosity

--mergeimports, --no-mergeimports#

Merge imports into source file (default=mergeimports)

--stacktrace, --no-stacktrace#

Print a stack trace when an error occurs

Default:

False

Arguments

YAMLFILE#

Required argument

Code#