@kulupu-linku/sona 0.3.0 → 0.3.2

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.
@@ -1,20 +1,11 @@
1
- import { TypedResponse } from 'hono';
2
1
  import { Languages } from '../lib';
3
2
 
4
- export type Result<T> = {
5
- ok: true;
6
- data: T;
7
- } | {
8
- ok: false;
9
- message: string;
10
- };
11
- export type ApiResponse<T> = Promise<TypedResponse<T>>;
12
3
  export declare const entries: <const T extends object>(o: T) => { [K in keyof T]: [K, T[K]]; }[keyof T][];
13
4
  export declare const keys: <const K extends PropertyKey>(o: Record<K, any>) => K[];
14
5
  export declare const filterObject: <const T extends object>(o: T, predicate: (o: [keyof T, T[keyof T]]) => boolean) => {
15
6
  [k: string]: T[keyof T];
16
7
  };
17
- export declare const langIdCoalesce: (lang: string, langs: Languages) => string | null;
8
+ export declare const langIdCoalesce: (lang: string, langs: Languages) => string | undefined;
18
9
  export declare const langValidator: import('hono').MiddlewareHandler<import('hono').Env, string, {
19
10
  in: {
20
11
  query: {