File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ import type { Tool } from './types' ;
2+
3+ type Candidate = Omit < Tool , 'icon' | 'category' > & {
4+ // preserve whatever types Tool had for icon/category, but also allow the empty string
5+ icon : ( Tool extends { icon : infer I } ? I : unknown ) | '' ;
6+ category : ( Tool extends { category : infer C } ? C : unknown ) | '' ;
7+ } ;
8+
9+ export const Candidates : Candidate [ ] = [
10+ {
11+ name : 'nest' ,
12+ icon : '' ,
13+ description :
14+ 'A progressive Node.js framework for building efficient, reliable and scalable server-side applications.' ,
15+ category : '' ,
16+ docsLink : 'https://nestjs.com/' ,
17+ githubLink : 'https://github.com/nestjs/nest' ,
18+ } ,
19+ {
20+ name : 'Express' ,
21+ icon : '' ,
22+ description : 'Fast, unopinionated, minimalist web framework for Node.js' ,
23+ category : '' ,
24+ docsLink : 'https://expressjs.com/' ,
25+ githubLink : 'https://github.com/expressjs/express' ,
26+ } ,
27+ {
28+ name : 'Koa' ,
29+ icon : '' ,
30+ description : 'Next generation web framework for Node.js' ,
31+ category : '' ,
32+ docsLink : 'https://koajs.com/' ,
33+ githubLink : 'https://github.com/koajs/koa' ,
34+ } ,
35+ ] ;
You can’t perform that action at this time.
0 commit comments