@milkio/astra 1.0.0-alpha.50 → 1.0.0-alpha.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.ts +5 -5
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -8,7 +8,7 @@ import { TSON } from '@southern-aurora/tson'
8
8
  import { format } from 'date-fns'
9
9
  import type { CookbookOptions } from './utils/cookbook-dto-types'
10
10
 
11
- export interface AstraOptionsInit {
11
+ export type AstraOptionsInit = {
12
12
  stargate: { $types: any, execute: any, ping: any, cookbook: any }
13
13
  bootstrap: () => Promise<Record<string, any>>
14
14
  }
@@ -17,19 +17,19 @@ type GeneratorGeneric<T> = T extends AsyncGenerator<infer I> ? I : never
17
17
 
18
18
  type Mixin<T, U> = U & Omit<T, keyof U>
19
19
 
20
- interface ExecuteOptions {
20
+ type ExecuteOptions = {
21
21
  headers?: Record<string, string>
22
22
  timeout?: number
23
23
  type?: 'action' | 'stream'
24
24
  }
25
25
 
26
- interface ExecuteResultsOption { executeId: string }
26
+ type ExecuteResultsOption = { executeId: string }
27
27
 
28
- interface Context {
28
+ type Context = {
29
29
  logger: Logger
30
30
  }
31
31
 
32
- interface Logger {
32
+ type Logger = {
33
33
  debug: (description: string, ...params: Array<unknown>) => Log
34
34
  info: (description: string, ...params: Array<unknown>) => Log
35
35
  warn: (description: string, ...params: Array<unknown>) => Log
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@milkio/astra",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.50",
4
+ "version": "1.0.0-alpha.52",
5
5
  "module": "index.ts",
6
6
  "dependencies": {
7
7
  "@southern-aurora/tson": "*",