Skip to content

Commit 0ab1f44

Browse files
committed
chore: add .ts extensions
1 parent 9a95d45 commit 0ab1f44

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/methods/create.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { POSTBinsBody, POSTBinsResponse } from '../types';
2-
import { resolveLanguageId } from '../utils/languages';
1+
import type { POSTBinsBody, POSTBinsResponse } from '../types.ts';
2+
import { resolveLanguageId } from '../utils/languages.ts';
33
import type { AxiosResponse } from 'axios';
4-
import { fetch } from '../utils/fetch';
5-
import { get } from './get';
4+
import { fetch } from '../utils/fetch.ts';
5+
import { get } from './get.ts';
66

77
export interface FileOptions {
88
name?: string;

src/methods/get.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { BinData, FileData, GETBin } from '../types';
1+
import type { BinData, FileData, GETBin } from '../types.ts';
2+
import { resolveKey } from '../utils/url.ts';
23
import type { AxiosResponse } from 'axios';
3-
import { resolveKey } from '../utils/url';
4-
import { Bin } from '../structures/Bin';
5-
import { fetch } from '../utils/fetch';
4+
import { Bin } from '../structures/Bin.ts';
5+
import { fetch } from '../utils/fetch.ts';
66

77
export interface GetOptions {
88
/**

src/methods/url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { resolveKey } from '../utils/url';
1+
import { resolveKey } from '../utils/url.ts';
22

33
export const url = (keyOrUrl: string) => {
44
const key = resolveKey(keyOrUrl);

src/structures/Bin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { File } from '../structures/File';
2-
import { BinData } from '../types';
1+
import { File } from '../structures/File.ts';
2+
import type { BinData } from '../types.ts';
33

44
export class Bin {
55
public readonly key: string;

src/structures/File.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FileData, SourcebinLinguistItem } from '../types';
1+
import type { FileData, SourcebinLinguistItem } from '../types.ts';
22
import { linguist } from '@sourcebin/linguist';
33

44
export class File {

0 commit comments

Comments
 (0)