Skip to content

Commit

Permalink
chore: add compat check
Browse files Browse the repository at this point in the history
  • Loading branch information
karashiiro committed Jul 26, 2024
1 parent 9a7639d commit 910b038
Show file tree
Hide file tree
Showing 4 changed files with 444 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/etc-compat/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"private": true,
"packageManager": "[email protected]",
"scripts": {
"start": "tsx src/index.mts"
},
"dependencies": {
"@the-convocation/twitter-scraper": "file:../../",
"tsx": "^4.15.5"
}
}
16 changes: 16 additions & 0 deletions examples/etc-compat/src/index.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import {
Profile,
Tweet,
Mention,
Photo,
PlaceRaw,
Video,
} from '@the-convocation/twitter-scraper';

const a: Profile = null as unknown as Profile;
const b: Tweet = null as unknown as Tweet;
const c: Mention = null as unknown as Mention;
const d: Photo = null as unknown as Photo;
const e: PlaceRaw = null as unknown as PlaceRaw;
const f: Video = null as unknown as Video;
8 changes: 8 additions & 0 deletions examples/etc-compat/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler"
}
}

Loading

0 comments on commit 910b038

Please sign in to comment.