mirror of
https://github.com/aljazceru/mcp-code.git
synced 2025-12-17 04:35:19 +01:00
initial commit
This commit is contained in:
25
lib/types/index.ts
Normal file
25
lib/types/index.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import type { NDKUserProfile } from "@nostr-dev-kit/ndk";
|
||||
|
||||
export type UserEntry = {
|
||||
profile: NDKUserProfile;
|
||||
data: string;
|
||||
};
|
||||
|
||||
export interface FindSnippetsParams {
|
||||
limit?: number;
|
||||
since?: number;
|
||||
until?: number;
|
||||
authors?: string[];
|
||||
languages?: string[];
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export type CodeSnippet = {
|
||||
id: string;
|
||||
title: string;
|
||||
code: string;
|
||||
language: string;
|
||||
pubkey: string;
|
||||
createdAt: number;
|
||||
tags: string[];
|
||||
};
|
||||
Reference in New Issue
Block a user