blob: a9633b63ca9968746693ee957b7f611ecfab3d75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { normalizeAdamID } from "../util";
const DEVELOPER_PAGE_INTENT_KIND = "DeveloperPageIntent";
/**
* Determines if {@linkcode intent} is a {@linkcode DeveloperPageIntent}
*/
export function isDeveloperPageIntent(intent) {
return intent.$kind === DEVELOPER_PAGE_INTENT_KIND;
}
/**
* Creates a {@linkcode DeveloperPageIntent}
*/
export function makeDeveloperPageIntent({ id, ...rest }) {
return {
...rest,
id: normalizeAdamID(id),
$kind: DEVELOPER_PAGE_INTENT_KIND,
};
}
//# sourceMappingURL=developer-page-intent.js.map
|