[ Web Proxy ]
URL:
Viewing: https://searchfe.github.io/ts2php/interfaces/ts2phpoptions.html#getmodulepathcode [Back]  [Original]

Ts2phpOptions | ts2php
Options
All
  • Public
  • Public/Protected
  • All
Inherited Externals Only exported
Menu

Hierarchy

Index

Properties

Optional compilerOptions

compilerOptions: CompilerOptions

Inherited from Ts2phpConstructOptions.compilerOptions

Optional customTransformers

customTransformers: TransformerFactory<SourceFile>[]

Inherited from Ts2phpCompileOptions.customTransformers

emit

const transformer = context => node => {
    return doSomeThingOnNode(node);
};

Optional emitHeader

emitHeader: boolean

Inherited from Ts2phpCompileOptions.emitHeader

<?php
namespace ${namespace};
default

true

Optional getModuleNamespace

getModuleNamespace: (name: string, module?: ResolvedModuleFull, moduleIt?: ModuleInfo) => string

Inherited from Ts2phpCompileOptions.getModuleNamespace

import

params

importPath

params

module

returns

Type declaration

    • (name: string, module?: ResolvedModuleFull, moduleIt?: ModuleInfo): string
    • Parameters

      • name: string
      • Optional module: ResolvedModuleFull
      • Optional moduleIt: ModuleInfo

      Returns string

Optional getModulePathCode

getModulePathCode: (importPath: string, module?: ResolvedModuleFull, moduleIt?: ModuleInfo, dirname?: string) => string

Inherited from Ts2phpCompileOptions.getModulePathCode

PHP import

params

importPath

params

module

params

dirname

returns

Type declaration

    • (importPath: string, module?: ResolvedModuleFull, moduleIt?: ModuleInfo, dirname?: string): string
    • Parameters

      • importPath: string
      • Optional module: ResolvedModuleFull
      • Optional moduleIt: ModuleInfo
      • Optional dirname: string

      Returns string

Optional getNamespace

getNamespace: (filePath: string) => string

Inherited from Ts2phpCompileOptions.getNamespace

Type declaration

    • (filePath: string): string
    • Parameters

      • filePath: string

      Returns string

Optional helperNamespace

helperNamespace: string

Inherited from Ts2phpCompileOptions.helperNamespace

Ts2Php_Helper class

Optional modules

modules: {}

Inherited from Ts2phpCompileOptions.modules

Type declaration

Optional namespace

namespace: string

Inherited from Ts2phpCompileOptions.namespace

Optional plugins

plugins: { emit: Function }[]

Inherited from Ts2phpCompileOptions.plugins

Optional showDiagnostics

showDiagnostics: boolean

Inherited from Ts2phpCompileOptions.showDiagnostics

TypeScript

Optional source

source: string

Inherited from Ts2phpCompileOptions.source

Legend

  • Constructor
  • Method
  • Property

Generated using TypeDoc


Web Proxy Viewer  |  New URL  |  Original Page