From 973791cde1755eeca3e5a0599e99c5d2e9a42e06 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 1 May 2024 16:16:19 -0500 Subject: [PATCH] type-fest alias --- deno.json | 1 + deno.lock | 1 + src/deps.ts | 2 -- src/utils/api.ts | 3 ++- src/views/mastodon/attachments.ts | 3 ++- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/deno.json b/deno.json index 3b6c042..0bc5d0b 100644 --- a/deno.json +++ b/deno.json @@ -33,6 +33,7 @@ "nostr-relaypool": "npm:nostr-relaypool2@0.6.34", "nostr-tools": "npm:nostr-tools@^2.5.1", "nostr-wasm": "npm:nostr-wasm@^0.1.0", + "type-fest": "npm:type-fest@^4.3.0", "zod": "npm:zod@^3.23.4", "~/fixtures/": "./fixtures/" }, diff --git a/deno.lock b/deno.lock index 9c302b1..eb53807 100644 --- a/deno.lock +++ b/deno.lock @@ -1512,6 +1512,7 @@ "npm:nostr-relaypool2@0.6.34", "npm:nostr-tools@^2.5.1", "npm:nostr-wasm@^0.1.0", + "npm:type-fest@^4.3.0", "npm:zod@^3.23.4" ] } diff --git a/src/deps.ts b/src/deps.ts index 2878bc6..78e90d0 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -37,5 +37,3 @@ export { default as uuid62 } from 'npm:uuid62@^1.0.2'; export { Machina } from 'https://gitlab.com/soapbox-pub/nostr-machina/-/raw/08a157d39f2741c9a3a4364cb97db36e71d8c03a/mod.ts'; export { EventEmitter } from 'npm:tseep@^1.1.3'; export { default as stringifyStable } from 'npm:fast-stable-stringify@^1.0.0'; - -export type * as TypeFest from 'npm:type-fest@^4.3.0'; diff --git a/src/utils/api.ts b/src/utils/api.ts index ee0ede2..85d5783 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -2,11 +2,12 @@ import { NostrEvent, NostrFilter } from '@nostrify/nostrify'; import Debug from '@soapbox/stickynotes/debug'; import { type Context, HTTPException } from 'hono'; import { EventTemplate } from 'nostr-tools'; +import * as TypeFest from 'type-fest'; import { z } from 'zod'; import { type AppContext } from '@/app.ts'; import { Conf } from '@/config.ts'; -import { parseFormData, type TypeFest } from '@/deps.ts'; +import { parseFormData } from '@/deps.ts'; import * as pipeline from '@/pipeline.ts'; import { AdminSigner } from '@/signers/AdminSigner.ts'; import { APISigner } from '@/signers/APISigner.ts'; diff --git a/src/views/mastodon/attachments.ts b/src/views/mastodon/attachments.ts index 38ddb37..3ea989e 100644 --- a/src/views/mastodon/attachments.ts +++ b/src/views/mastodon/attachments.ts @@ -1,5 +1,6 @@ +import * as TypeFest from 'type-fest'; + import { UnattachedMedia } from '@/db/unattached-media.ts'; -import { type TypeFest } from '@/deps.ts'; type DittoAttachment = TypeFest.SetOptional;