forked from Devographics/state-of-js-graphql-results-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
file_types.d.ts
45 lines (38 loc) · 844 Bytes
/
file_types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// import { Entity } from './src/types'
declare module '*.graphql' {
import { DocumentNode } from 'graphql'
const Schema: DocumentNode
export = Schema
}
/**
* Define the type for the static features yaml file
*/
declare module 'entities/*.yml' {
interface Entity {
id: string
name: string
mdn?: string
caniuse?: string
}
const content: Entity[]
export default content
}
/**
* Define the type for the static projects yaml file
*/
declare module '*projects.yml' {
interface ProjectData {
id: string
name: string
description: string
github: string
stars: number
homepage: string
}
const content: ProjectData[]
export default content
}
declare module '*.yml' {
const content: any
export default content
}