-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
41 lines (37 loc) · 1.02 KB
/
index.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
/**
* Gives UNPKG URL of a food picture.
* [📦](https://www.npmjs.com/package/@ifct2017/pictures)
* @param cod food code
* @returns URL if present, null otherwise
* @example
* ```javascript
* pictures.unpkg('A001');
* // https://unpkg.com/@ifct2017/pictures/assets/A001.jpeg
* ```
*/
export function unpkg(cod: string): string | null;
/**
* Gives jsDelivr URL of a food picture.
* [📦](https://www.npmjs.com/package/@ifct2017/pictures)
* @param cod food code
* @returns URL if present, null otherwise
* @example
* ```javascript
* pictures.jsDelivr('A001');
* // https://cdn.jsdelivr.net/npm/@ifct2017/pictures/assets/A001.jpeg
* ```
*/
export function jsDelivr(cod: string): string | null;
/**
* Gives path of a food picture.
* [📦](https://www.npmjs.com/package/@ifct2017/pictures)
* @param cod food code
* @returns path if present, null otherwise
* @example
* ```javascript
* pictures('A001');
* // C:\Documents\pictures\A001.jpeg
* ```
*/
function pictures(cod: string): string | null;
export = pictures;