File: helpers.d.ts

package info (click to toggle)
node-i18next 23.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,780 kB
  • sloc: javascript: 13,315; makefile: 2
file content (5 lines) | stat: -rw-r--r-- 358 bytes parent folder | download
1
2
3
4
5
export type $MergeBy<T, K> = Omit<T, keyof K> & K;
export type $Dictionary<T = unknown> = { [key: string]: T };
export type $OmitArrayKeys<Arr> = Arr extends readonly any[] ? Omit<Arr, keyof any[]> : Arr;
export type $PreservedValue<Value, Fallback> = [Value] extends [never] ? Fallback : Value;
export type $SpecialObject = object | Array<string | object>;