Search
Preparing search index...
The search index is not available
san-ssr-target-php
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"src/transformers/replace-san-module"
Module "src/transformers/replace-san-module"
Index
Functions
replace
San
Module
Functions
replace
San
Module
replace
San
Module
(
sourceFile
:
SourceFile
, packageName
:
string
)
:
void
把源码中的 Component 替换为我们提供的 SanSSRComponent。作用:
PHP SSR 只支持部分功能,有白名单的功效,不支持的功能编译期拒绝
Component 在 PHP 里需要是 class 而非 interface,因为我们需要基类成员
Parameters
sourceFile:
SourceFile
packageName:
string
Returns
void
Globals
"src/compile-
options"
"src/emitters/emitter"
"src/emitters/helpers"
"src/emitters/reference-
compiler"
"src/emitters/stringifier"
"src/emitters/ts2php"
"src/index"
"src/transformers/index"
"src/transformers/refactor-
member-
initializer"
"src/transformers/refactor-
method-
collection"
"src/transformers/refactor-
reserved-
names"
"src/transformers/replace-
san-
module"
"src/utils/case"
"src/utils/fs"
"src/utils/lang"
replace
San
Module
Generated using
TypeDoc
把源码中的 Component 替换为我们提供的 SanSSRComponent。作用: