1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

DOCS: Fix number type in typescript (#2219)

This commit is contained in:
Paul Dee
2023-03-24 13:39:04 +01:00
committed by GitHub
parent 3bf78471e6
commit ac5006ba68
6 changed files with 90 additions and 51 deletions

View File

@ -6,20 +6,21 @@ parameters:
- y
- alt
- ttl
parameters_object: true
parameter_types:
label: string
x: float32
y: float32
alt: float32
ttl: int
label: string?
x: number
y: number
alt: number?
ttl: Duration?
---
`LOC_BUILDER_DD({})` actually takes an object with the following properties:
- label (optional, defaults to `@`)
- x
- y
- alt
- x (float32)
- y (float32)
- alt (float32, optional)
- ttl (optional)
A helper to build [`LOC`](../domain/LOC.md) records. Supply four parameters instead of 12.

View File

@ -5,18 +5,19 @@ parameters:
- str
- alt
- ttl
parameters_object: true
parameter_types:
label: string
label: string?
str: string
alt: float32
ttl: int
alt: number?
ttl: Duration?
---
`LOC_BUILDER_DMM({})` actually takes an object with the following properties:
- label (optional, defaults to `@`)
- str
- alt
- label (string, optional, defaults to `@`)
- str (string)
- alt (float32, optional)
- ttl (optional)
A helper to build [`LOC`](../domain/LOC.md) records. Supply three parameters instead of 12.

View File

@ -5,18 +5,19 @@ parameters:
- str
- alt
- ttl
parameters_object: true
parameter_types:
label: string
label: string?
str: string
alt: float32
ttl: int
alt: number?
ttl: Duration?
---
`LOC_BUILDER_DMS_STR({})` actually takes an object with the following properties:
- label (optional, defaults to `@`)
- str
- alt
- label (string, optional, defaults to `@`)
- str (string)
- alt (float32, optional)
- ttl (optional)
A helper to build [`LOC`](../domain/LOC.md) records. Supply three parameters instead of 12.

View File

@ -5,18 +5,19 @@ parameters:
- str
- alt
- ttl
parameters_object: true
parameter_types:
label: string
label: string?
str: string
alt: float32
ttl: int
alt: number?
ttl: Duration?
---
`LOC_BUILDER_STR({})` actually takes an object with the following: properties.
- label (optional, defaults to `@`)
- str
- alt
- str (string)
- alt (float32, optional)
- ttl (optional)
A helper to build [`LOC`](../domain/LOC.md) records. Supply three parameters instead of 12.