tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
add page block generated files
awarm.space
6 months ago
abc32646
97ce005c
+43
2 changed files
expand all
collapse all
unified
split
lexicons
api
types
pub
leaflet
blocks
page.ts
pub
leaflet
blocks
page.json
+26
lexicons/api/types/pub/leaflet/blocks/page.ts
···
1
1
+
/**
2
2
+
* GENERATED CODE - DO NOT MODIFY
3
3
+
*/
4
4
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
5
+
import { CID } from 'multiformats/cid'
6
6
+
import { validate as _validate } from '../../../../lexicons'
7
7
+
import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
8
8
+
9
9
+
const is$typed = _is$typed,
10
10
+
validate = _validate
11
11
+
const id = 'pub.leaflet.blocks.page'
12
12
+
13
13
+
export interface Main {
14
14
+
$type?: 'pub.leaflet.blocks.page'
15
15
+
id: string
16
16
+
}
17
17
+
18
18
+
const hashMain = 'main'
19
19
+
20
20
+
export function isMain<V>(v: V) {
21
21
+
return is$typed(v, id, hashMain)
22
22
+
}
23
23
+
24
24
+
export function validateMain<V>(v: V) {
25
25
+
return validate<Main & V>(v, id, hashMain)
26
26
+
}
+17
lexicons/pub/leaflet/blocks/page.json
···
1
1
+
{
2
2
+
"lexicon": 1,
3
3
+
"id": "pub.leaflet.blocks.page",
4
4
+
"defs": {
5
5
+
"main": {
6
6
+
"type": "object",
7
7
+
"required": [
8
8
+
"id"
9
9
+
],
10
10
+
"properties": {
11
11
+
"id": {
12
12
+
"type": "string"
13
13
+
}
14
14
+
}
15
15
+
}
16
16
+
}
17
17
+
}