smartnpm/ts/smartnpm.interfaces.ts

25 lines
413 B
TypeScript
Raw Normal View History

2017-08-15 15:03:21 +00:00
export interface ISearchObject {
// name
2018-09-01 14:40:42 +00:00
name?: string;
2017-08-15 15:03:21 +00:00
// metadata
2018-09-01 14:40:42 +00:00
author?: string;
maintainer?: string;
scope?: string;
keywords?: string[];
2017-08-15 15:03:21 +00:00
// status
2018-09-01 14:40:42 +00:00
deprecated?: boolean;
unstable?: boolean;
insecure?: boolean;
2017-08-15 15:03:21 +00:00
// search behaviour
2018-09-01 14:40:42 +00:00
boostExact?: boolean;
scoreEffect?: number;
2017-08-15 15:03:21 +00:00
// Analytics
2018-09-01 14:40:42 +00:00
qualityWeight?: number;
popularityWeight?: number;
maintenanceWeight?: number;
2017-08-15 15:03:21 +00:00
}