1.0.2 • Published 5 months ago

@atcute/frontpage v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@atcute/frontpage

Frontpage (fyi.unravel.frontpage.*) schema definitions

usage

import { FyiUnravelFrontpagePost } from '@atcute/frontpage';
import { is } from '@atcute/lexicons';

const post: FyiUnravelFrontpagePost.Main = {
	$type: 'fyi.unravel.frontpage.post',
	url: 'https://github.com/mary-ext/atcute',
	title: 'collection of lightweight TypeScript packages for dealing with AT Protocol',
	createdAt: '2024-10-16T16:12:01.599Z',
};

is(FyiUnravelFrontpagePost.mainSchema, post);
// -> true

with @atcute/client

pick either one of these 3 options to register the ambient declarations

// tsconfig.json
{
	"compilerOptions": {
		"types": ["@atcute/frontpage"],
	},
}
// env.d.ts
/// <reference types="@atcute/frontpage" />
// index.ts
import type {} from '@atcute/frontpage';

now all the XRPC operations should be visible in the client

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago