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://linkml.io/linkml-runtime.js

gen-typescript [OPTIONS] YAMLFILE

Options

-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)

Arguments

YAMLFILE

Required argument

Code