0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/packages/types/index.ts
2021-11-08 17:24:15 +01:00

39 lines
921 B
TypeScript

// REMOVE and VERIFY where these types are used and remove the package
import { Callback, Package, RemoteUser } from '@verdaccio/types';
export type JWTPayload = RemoteUser & {
password?: string;
};
export interface Utils {
ErrorCode: any;
getLatestVersion: Callback;
isObject: (value: any) => boolean;
validate_name: (value: any) => boolean;
tag_version: (value: any, version: string, tag: string) => void;
normalizeDistTags: (pkg: Package) => void;
semverSort: (keys: string[]) => string[];
}
export interface Profile {
tfa: boolean;
name: string;
email: string;
email_verified: string;
created: string;
updated: string;
cidr_whitelist: any;
fullname: string;
}
/**
* @property { string | number | Styles } [ruleOrSelector]
*/
export interface Styles {
[ruleOrSelector: string]: string | number | Styles;
}
export type SearchResultWeb = {
name: string;
version: string;
};