UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
generic
/
models
/
Protocol.ts
15 lines
(11 loc)
•
267 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{ z }
from
'zod'
export
const
ProtocolSchema
= z.
enum
([
'http'
,
'https'
,
'mailto'
,
'tel'
,
'tg'
,
// Telegram
'skype'
, ])
// export const { http, https, mailto, tel, tg } = ProtocolSchema.enum
export
type
Protocol
= z.
infer
<
typeof
ProtocolSchema
>