Skip to content

Commit 44ed9a5

Browse files
committed
Document namespaced types
1 parent aaa54c9 commit 44ed9a5

File tree

5 files changed

+56
-30
lines changed

5 files changed

+56
-30
lines changed

.changeset/chatty-cherries-drum.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
'apollo-angular': major
3+
---
4+
5+
Namespaced types
6+
7+
Before:
8+
9+
```ts
10+
import type {
11+
Options,
12+
BatchOptions
13+
} from 'apollo-angular/http';
14+
15+
import type {
16+
MutationOptionsAlone,
17+
QueryOptionsAlone,
18+
SubscriptionOptionsAlone,
19+
WatchQueryOptions,
20+
WatchQueryOptionsAlone,
21+
} from 'apollo-angular';
22+
23+
type AllTypes =
24+
| Options
25+
| BatchOptions
26+
| MutationOptionsAlone
27+
| QueryOptionsAlone
28+
| SubscriptionOptionsAlone
29+
| WatchQueryOptions
30+
| WatchQueryOptionsAlone;
31+
```
32+
33+
After:
34+
35+
```ts
36+
import type {
37+
HttpBatchLink,
38+
HttpLink
39+
} from 'apollo-angular/http';
40+
41+
import type {
42+
Apollo,
43+
Mutation,
44+
Query,
45+
Subscription,
46+
} from 'apollo-angular';
47+
48+
type AllTypes =
49+
| HttpLink.Options
50+
| HttpBatchLink.Options
51+
| Mutation.MutateOptions
52+
| Query.FetchOptions
53+
| Subscription.SubscribeOptions
54+
| Apollo.WatchQueryOptions
55+
| Query.WatchOptions;
56+
```

packages/apollo-angular/http/src/deprecated.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/apollo-angular/http/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
export { HttpLink, HttpLinkHandler } from './http-link';
33
// http-batch
44
export { HttpBatchLink, HttpBatchLinkHandler } from './http-batch-link';
5-
// common
6-
export { BatchOptions, Options } from './deprecated';

packages/apollo-angular/src/deprecated.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/apollo-angular/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ export { Subscription } from './subscription';
88
export { APOLLO_OPTIONS, APOLLO_NAMED_OPTIONS, APOLLO_FLAGS } from './tokens';
99
export type { Flags, NamedOptions, ResultOf, VariablesOf } from './types';
1010
export { gql } from './gql';
11-
12-
export { MutationOptions, MutationResult, WatchQueryOptions } from './deprecated';

0 commit comments

Comments
 (0)