Projections and snippets

TYPE

TsProjectionRegister

@skmtc/lang-typescript 0.19.1

The methods of a TypeScript projection that add imports and definitions to a file.

Signature

import type { TsProjectionRegister } from '@skmtc/lang-typescript'

interface TsProjectionRegister

Properties

register, (args: TsRegisterArgs) => void required

Register imports and definitions in this projection's own export file (this.settings.exportPath). For a different file use registerInto.

registerInto, (destinationPath: string, args: TsRegisterArgs) => void required

Register imports and definitions in the file you name. register always uses this projection's own export file.