3.1.0 • Published 4 months ago

@atcute/whitewind v3.1.0

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

@atcute/whitewind

WhiteWind (com.whtwnd.*) schema definitions

usage

import { is } from '@atcute/lexicons';
import { ComWhtwndBlogEntry } from '@atcute/whitewind';

const record: ComWhtwndBlogEntry.Main = {
	$type: 'com.whtwnd.blog.entry',
	content: `# Hello world!`,
	visibility: 'public',
	createdAt: '2025-05-07T10:00:00.000Z',
};

is(ComWhtwndBlogEntry.mainSchema, record);
// -> true

with @atcute/client

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

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

now all the XRPC operations should be visible in the client

3.0.2

5 months ago

3.1.0

4 months ago

3.0.1

5 months ago

3.0.0

5 months ago

1.0.4

11 months ago

1.0.3

11 months ago

2.0.1

5 months ago

2.0.0

6 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago