-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathntp.ts
More file actions
28 lines (25 loc) · 669 Bytes
/
ntp.ts
File metadata and controls
28 lines (25 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* @module
* The ntp field.
*
* @example
* ```ts
* import { createNtp } from "@zhexin/typebox/ntp"
* ```
*/
import type { dialer, duration, server } from './types.ts'
export const createNtp = <
outbound_tag extends string = never,
dns_server_tag extends string = never,
>(n: ntp<outbound_tag, dns_server_tag>): ntp<outbound_tag, dns_server_tag> => n
/**
* You should not use this directly, instead use {@link createNtp}.
*/
export interface ntp<
outbound_tag extends string,
dns_server_tag extends string,
> extends dialer<outbound_tag, dns_server_tag>, server {
enabled: true
interval?: duration
write_to_system?: boolean
}