index
Estimated time to read: 3 minutes
Functions¶
_readWithFile()¶
_readWithFile(
element,options?,context?,stylesheet?,sourcePath?):Promise\<[string,undefined|PomlFile]>
Defined in: packages/poml/index.ts:51
Parameters¶
element¶
string | ReactElement\<unknown, string | JSXElementConstructor\<any>>
options?¶
context?¶
stylesheet?¶
sourcePath?¶
string
Returns¶
Promise\<[string, undefined | PomlFile]>
clearTrace()¶
clearTrace():
void
Defined in: packages/poml/util/trace.ts:56
Returns¶
void
commandLine()¶
commandLine(
args):Promise\<void>
Defined in: packages/poml/index.ts:152
Parameters¶
args¶
CliArgs
Returns¶
Promise\<void>
dumpTrace()¶
dumpTrace(
markup,context?,stylesheet?,result?,sourcePath?,prettyResult?):void
Defined in: packages/poml/util/trace.ts:100
Parameters¶
markup¶
string
context?¶
any
stylesheet?¶
any
result?¶
any
sourcePath?¶
string
prettyResult?¶
string
Returns¶
void
parseJsonWithBuffers()¶
parseJsonWithBuffers(
text):any
Defined in: packages/poml/util/trace.ts:24
Parameters¶
text¶
string
Returns¶
any
poml()¶
poml(
element):Promise\<RichContent>
Defined in: packages/poml/index.ts:119
Parameters¶
element¶
string | ReactElement\<unknown, string | JSXElementConstructor\<any>>
Returns¶
Promise\<RichContent>
read()¶
read(
element,options?,context?,stylesheet?,sourcePath?):Promise\<string>
Defined in: packages/poml/index.ts:26
Parameters¶
element¶
string | ReactElement\<unknown, string | JSXElementConstructor\<any>>
options?¶
context?¶
stylesheet?¶
sourcePath?¶
string
Returns¶
Promise\<string>
setTrace()¶
setTrace(
enabled,dir?):undefined|string
Defined in: packages/poml/util/trace.ts:36
Parameters¶
enabled¶
boolean = true
dir?¶
string
Returns¶
undefined | string
write()¶
Entry point for turning a parsed IR string into rich content or a list of
speaker messages. The heavy lifting is done by EnvironmentDispatcher.
Call Signature¶
write(
ir,options?):RichContent
Defined in: packages/poml/index.ts:87
Parameters¶
ir¶
string
options?¶
WriteOptionsNoSpeakerMode
Returns¶
Call Signature¶
write(
ir,options):Message[]
Defined in: packages/poml/index.ts:88
Parameters¶
ir¶
string
options¶
WriteOptionsSpeakerMode
Returns¶
Message[]
Call Signature¶
write(
ir,options?):RichContent|Message[]
Defined in: packages/poml/index.ts:89
Parameters¶
ir¶
string
options?¶
WriteOptions
Returns¶
RichContent | Message[]
writeWithSourceMap()¶
Variant of write that also exposes a source map describing the mapping between input indices and output content.
Call Signature¶
writeWithSourceMap(
ir,options?):SourceMapRichContent[]
Defined in: packages/poml/index.ts:103
Parameters¶
ir¶
string
options?¶
WriteOptionsNoSpeakerMode
Returns¶
Call Signature¶
writeWithSourceMap(
ir,options):SourceMapMessage[]
Defined in: packages/poml/index.ts:104
Parameters¶
ir¶
string
options¶
WriteOptionsSpeakerMode
Returns¶
Call Signature¶
writeWithSourceMap(
ir,options?):SourceMapRichContent[] |SourceMapMessage[]
Defined in: packages/poml/index.ts:105
Parameters¶
ir¶
string
options?¶
WriteOptions