github-pinned-repo-sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ const data = await getPinnedRepos('sindresorhus');
|
|
|
27
27
|
#### TypeScript
|
|
28
28
|
Define types:
|
|
29
29
|
```ts
|
|
30
|
-
import { getPinnedRepos } from 'github-pinned-repo-sdk';
|
|
30
|
+
import { getPinnedRepos, type PinnedRepo, type GithubUser } from 'github-pinned-repo-sdk';
|
|
31
31
|
|
|
32
32
|
type ApiResponse = {
|
|
33
33
|
user: GithubUser;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type GithubUser = {
|
|
1
|
+
export type GithubUser = {
|
|
2
2
|
login: string;
|
|
3
3
|
id: number;
|
|
4
4
|
avatar_url: string;
|
|
@@ -7,7 +7,7 @@ type GithubUser = {
|
|
|
7
7
|
followers: number;
|
|
8
8
|
following: number;
|
|
9
9
|
};
|
|
10
|
-
type PinnedRepo = {
|
|
10
|
+
export type PinnedRepo = {
|
|
11
11
|
owner: string;
|
|
12
12
|
repo: string;
|
|
13
13
|
internal_link?: string;
|
|
@@ -23,5 +23,4 @@ export declare function getPinnedRepos(username: string): Promise<{
|
|
|
23
23
|
pinned_repos: PinnedRepo[];
|
|
24
24
|
pinned_repos_total_stars: number;
|
|
25
25
|
}>;
|
|
26
|
-
export {};
|
|
27
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAMF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9D,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC,CA8ED"}
|