File tree Expand file tree Collapse file tree 9 files changed +27
-26
lines changed Expand file tree Collapse file tree 9 files changed +27
-26
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
getCapabilitiesForMethodCalls ,
3
3
knownCapabilities ,
4
- } from "./capabilities" ;
4
+ } from "./capabilities.ts " ;
5
5
import {
6
6
expandURITemplate ,
7
7
getErrorFromInvocation ,
8
8
getResultsForMethodCalls ,
9
- } from "./helpers" ;
9
+ } from "./helpers.ts " ;
10
10
import {
11
11
WithRevValues ,
12
12
WithoutRefValues ,
13
13
buildRequestsFromDrafts ,
14
14
type DraftsProxy ,
15
15
type InvocationDraft ,
16
- } from "./request-drafts" ;
16
+ } from "./request-drafts.ts " ;
17
17
import {
18
18
type GetArgs ,
19
19
type GetResponseData ,
@@ -22,9 +22,9 @@ import {
22
22
type Methods ,
23
23
type ProxyAPI ,
24
24
type RequestOptions ,
25
- } from "./types/contracts" ;
26
- import type * as JMAP from "./types/jmap" ;
27
- import type * as JMAPMail from "./types/jmap-mail" ;
25
+ } from "./types/contracts.ts " ;
26
+ import type * as JMAP from "./types/jmap.ts " ;
27
+ import type * as JMAPMail from "./types/jmap-mail.ts " ;
28
28
29
29
export type ClientConfig = {
30
30
/**
Original file line number Diff line number Diff line change 1
- import type { Invocation , ProblemDetails } from "./types/jmap" ;
1
+ import type { Invocation , ProblemDetails } from "./types/jmap.ts " ;
2
2
3
3
/**
4
4
* Expands a URI template with the given parameters.
Original file line number Diff line number Diff line change 1
1
// Client
2
- export * from "./client" ;
3
- export { JamClient as default } from "./client" ;
2
+ export * from "./client.ts " ;
3
+ export { JamClient as default } from "./client.ts " ;
4
4
5
5
// Utils
6
- export * from "./utils" ;
6
+ export * from "./utils.ts " ;
7
7
8
8
// -------------------------------------------------
9
9
// Types
10
10
// -------------------------------------------------
11
11
12
12
// Request and response contracts
13
- export type * from "./types/contracts" ;
13
+ export type * from "./types/contracts.ts " ;
14
14
15
15
// JMAP
16
- export type * from "./types/jmap" ;
17
- export type * as JMAP from "./types/jmap" ;
16
+ export type * from "./types/jmap.ts " ;
17
+ export type * as JMAP from "./types/jmap.ts " ;
18
18
19
19
// JMAP Mail
20
- export type * from "./types/jmap-mail" ;
21
- export type * as JMAPMail from "./types/jmap-mail" ;
20
+ export type * from "./types/jmap-mail.ts " ;
21
+ export type * as JMAPMail from "./types/jmap-mail.ts " ;
Original file line number Diff line number Diff line change 1
- import type { ExcludeValue , IncludeValue } from "./helpers" ;
2
- import { LocalInvocation , Methods , Requests } from "./types/contracts" ;
3
- import type { Invocation , JSONPointer , ResultReference } from "./types/jmap" ;
1
+ import type { ExcludeValue , IncludeValue } from "./helpers.ts " ;
2
+ import { LocalInvocation , Methods , Requests } from "./types/contracts.ts " ;
3
+ import type { Invocation , JSONPointer , ResultReference } from "./types/jmap.ts " ;
4
4
5
5
export type Ref < I = unknown > = ReturnType < InvocationDraft < I > [ "$ref" ] > ;
6
6
Original file line number Diff line number Diff line change 1
1
import type { Exact } from "type-fest" ;
2
- import type { HasAllKeysOfRelated } from "../helpers" ;
2
+ import type { HasAllKeysOfRelated } from "../helpers.ts " ;
3
3
import type {
4
4
BlobCopyArguments ,
5
5
BlobCopyResponse ,
@@ -22,7 +22,7 @@ import type {
22
22
SetArguments ,
23
23
SetError ,
24
24
SetResponse ,
25
- } from "./jmap" ;
25
+ } from "./jmap.ts " ;
26
26
import type {
27
27
Email ,
28
28
EmailFilterCondition ,
@@ -37,7 +37,7 @@ import type {
37
37
SearchSnippet ,
38
38
Thread ,
39
39
VacationResponse ,
40
- } from "./jmap-mail" ;
40
+ } from "./jmap-mail.ts " ;
41
41
42
42
export type Requests = {
43
43
// Core -----------------------------------
Original file line number Diff line number Diff line change 1
- import type { FilterCondition , ID , UTCDate } from "./jmap" ;
1
+ import type { FilterCondition , ID , UTCDate } from "./jmap.ts " ;
2
2
3
3
/**
4
4
* JMAP Mail
Original file line number Diff line number Diff line change 1
- import type { Obj } from "../helpers" ;
1
+ import type { Obj } from "../helpers.ts " ;
2
2
3
3
/**
4
4
* JMAP
Original file line number Diff line number Diff line change 1
- import type { HeaderParsedForm } from "./types/jmap-mail" ;
1
+ import type { HeaderParsedForm } from "./types/jmap-mail.ts " ;
2
2
3
3
/**
4
4
* Generate a key to retrieve a header field
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"lib" : [" ESNext" , " DOM" ],
4
- "module" : " esnext " ,
4
+ "module" : " Node16 " ,
5
5
"target" : " ES2018" ,
6
- "moduleResolution" : " node" ,
6
+ "allowImportingTsExtensions" : true ,
7
+ "moduleResolution" : " Node16" ,
7
8
"strict" : true ,
8
9
"skipLibCheck" : true ,
9
10
"allowSyntheticDefaultImports" : true ,
You can’t perform that action at this time.
0 commit comments