Germ Network (com.germnetwork.*) schema definitions
import { ComGermnetworkDeclaration } from '@atcute/germ';
import { is } from '@atcute/lexicons';
const declaration: ComGermnetworkDeclaration.Main = {
$type: 'com.germnetwork.declaration',
version: '1.0.0',
currentKey: { $bytes: '...' },
};
is(ComGermnetworkDeclaration.mainSchema, declaration);
// -> truepick either one of these 3 options to register the ambient declarations
// file: env.d.ts
/// <reference types="@atcute/germ" />// file: index.ts
import type {} from '@atcute/germ';when building your own lexicons that reference Germ Network types, configure lex-cli to import from this package:
// file: lex.config.js
import { defineLexiconConfig } from '@atcute/lex-cli';
export default defineLexiconConfig({
files: ['lexicons/**/*.json'],
outdir: 'src/lexicons/',
imports: ['@atcute/germ'],
});