Skip to content

Commit 7491221

Browse files
committed
feat(candidates): add candidates data structure with initial entries for Nest, Express, and Koa
1 parent 7ed9f29 commit 7491221

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/data/candidates.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
];

0 commit comments

Comments
 (0)