@clipprjs/lexicons#
Lexicon package auto-generated with @atcute/lex-cli
This package is somewhat unstable. Lexicon attributes can be modified at any moment. Please do not use this package for anything until the Clippr server has been deployed for either public or developer usage.
Usage#
This section has been shamelessly lifted from the atcute definitions packages. We recommend using this package with other atcute libraries for maximum compatibility.
import {SocialClipprFeedClip} from '@clipprjs/lexicons';
import {is} from '@atcute/lexicons';
const record: SocialClipprFeedClip.Main = {
$type: 'social.clippr.feed.clip',
createdAt: "2025-07-08T12:34:56.123Z",
url: "https://example.com",
title: "Example page",
description: "Example description",
unlisted: false,
notes: "This is an example note for a clip",
tags: undefined,
unread: true,
languages: [
"en"
]
};
is(SocialClipprFeedClip.mainSchema, record);
// -> true
Using with @atcute/client#
Pick either one of these three options to register the ambient declarations:
// tsconfig.json
{
"compilerOptions": {
"types": ["@clipprjs/lexicons"],
},
}
// env.d.ts
/// <reference types="@clipprjs/lexicons" />
// index.ts
import type {} from '@clipprjs/lexicons';
All the Lexicon record schemas and XRPC operations should be visible in the client afterward.