www/src/content/docs/dummy/tsdoc.mdx
import Segment from '../../../components/tsdoc/Segment.astro'; import Section from '../../../components/tsdoc/Section.astro'; import NestedTitle from '../../../components/tsdoc/NestedTitle.astro'; import InlineSection from '../../../components/tsdoc/InlineSection.astro';
<div class="tsdoc"> <Section type="about"> Returns a locale object for the specified definition with `locale.format` and `locale.formatPrefix` methods.This section has more from about the FormatSpecifier.
:::note
You can also add notes. By specifying the ZipFile property within the Code property, specify index.function_name as the handler.
:::
Here's a simple example.
new FormatSpecifier("param1");
Here's a more complicated example.
new FormatSpecifier("param1", "param2", "param3");
For more info refer to our other docs.
</Section>A specifier object.
A number to add.
This function doesn't do anything. </Segment>
This function takes some simple args.
<Section type="parameters"> #### ParametersThis function takes full args.
<Section type="parameters"> <InlineSection> **Type** <code class="primitive">Object</code> </InlineSection>A simple prop to add.
A complex prop to add with a description that is longer than one line. This matters because
A simple example.
{ prop2: "x86_64" }
A more complicated multi-line example.
{
prop2: "x86_64"
}
Just pass something in.
{
prop2: "x86_64"
}
Here's an example.
function demo() {
+ return fullArgs(true, false ,true);
}
And another example.
const a = 1;
const b = a + 1;
fullArgs(true, false ,true);
<NestedTitle id="1" Tag="h4" parent="objectPropNested.">objectKey1</NestedTitle>
<Segment> A simple object prop. <InlineSection> **Type** <code class="primitive">Output</code><code class="symbol"><</code><code class="primitive">Object</code><code class="symbol">></code> </InlineSection> </Segment><NestedTitle id="2" Tag="h5" parent="objectPropNested.resource1.">objectKey1</NestedTitle>
<Segment> A simple object prop. <InlineSection> **Type** <code class="primitive">Object</code> </InlineSection> </Segment><NestedTitle id="3" Tag="h5" parent="objectPropNested.resource1.objectKey1.">objectKey11</NestedTitle>
<Segment> A simple object prop. <InlineSection> **Type** <code class="primitive">Object</code><code class="symbol">[]</code> </InlineSection> </Segment><NestedTitle id="4" Tag="h5" parent="objectPropNested.resource1.objectKey1.objectKey11[].">objectKey112</NestedTitle>
<Segment> A simple object prop. <InlineSection> **Type** <code class="primitive">Object</code> </InlineSection> </Segment><NestedTitle id="5" Tag="h5" parent="objectPropNested.resource1.objectKey1.objectKey11[].objectKey112.">key1111</NestedTitle>
<Segment> A simple prop. <InlineSection> **Type** <code class="primitive">string</code> </InlineSection> </Segment>For example,
new Function(stack, "Function", {
architecture: "arm_64",
})
new Function(stack, "Function", {
architecture: "arm_64",
})
A simple prop to add.
{
prop1: true
}
A complex prop to add with a description that is longer than one line. This matters because
A simple example.
{ prop2: "x86_64" }
A more complicated multi-line example.
{
prop2: "x86_64"
}
Just pass something in.
{
prop2: "x86_64"
}
new Function(stack, "Function", {
architecture: "arm_64",
})