import from core.ts instead of pure.ts whenever possible.
This commit is contained in:
parent
d155bcdcda
commit
1f7378ca49
|
@ -1,4 +1,4 @@
|
|||
import { Event } from './pure.ts'
|
||||
import { Event } from './core.ts'
|
||||
|
||||
export type Filter = {
|
||||
ids?: string[]
|
||||
|
|
2
nip10.ts
2
nip10.ts
|
@ -1,4 +1,4 @@
|
|||
import type { Event } from './pure.ts'
|
||||
import type { Event } from './core.ts'
|
||||
import type { EventPointer, ProfilePointer } from './nip19.ts'
|
||||
|
||||
export type NIP10Result = {
|
||||
|
|
2
nip42.ts
2
nip42.ts
|
@ -1,4 +1,4 @@
|
|||
import { EventTemplate } from './pure.ts'
|
||||
import { EventTemplate } from './core.ts'
|
||||
import { ClientAuth } from './kinds.ts'
|
||||
|
||||
/**
|
||||
|
|
2
pool.ts
2
pool.ts
|
@ -1,7 +1,7 @@
|
|||
import { Relay, SubscriptionParams, Subscription } from './relay.ts'
|
||||
import { normalizeURL } from './utils.ts'
|
||||
|
||||
import type { Event } from './pure.ts'
|
||||
import type { Event } from './core.ts'
|
||||
import { type Filter } from './filter.ts'
|
||||
|
||||
export type SubCloser = { close: () => void }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { decode, type AddressPointer, type ProfilePointer, type EventPointer } from './nip19.ts'
|
||||
|
||||
import type { Event } from './pure.ts'
|
||||
import type { Event } from './core.ts'
|
||||
|
||||
type Reference = {
|
||||
text: string
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"outDir": "lib/types",
|
||||
"resolveJsonModule": true,
|
||||
"rootDir": ".",
|
||||
"allowImportingTsExtensions": true,
|
||||
"types": ["bun-types"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ import { describe, test, expect } from 'bun:test'
|
|||
import { buildEvent } from './test-helpers.ts'
|
||||
import { Queue, insertEventIntoAscendingList, insertEventIntoDescendingList, binarySearch } from './utils.ts'
|
||||
|
||||
import type { Event } from './pure.ts'
|
||||
import type { Event } from './core.ts'
|
||||
|
||||
describe('inserting into a desc sorted list of events', () => {
|
||||
test('insert into an empty list', async () => {
|
||||
|
|
Loading…
Reference in New Issue