mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Added types for jest-environment-puppeteer
This commit is contained in:
13
types/jest-environment-puppeteer/index.d.ts
vendored
Normal file
13
types/jest-environment-puppeteer/index.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// Type definitions for jest-environment-puppeteer 2.2
|
||||
// Project: https://github.com/smooth-code/jest-puppeteer
|
||||
// Definitions by: Josh Goldberg <https://github.com/joshuakgoldberg>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import { Browser, Page } from "puppeteer";
|
||||
|
||||
declare global {
|
||||
const browser: Browser;
|
||||
const page: Page;
|
||||
}
|
||||
|
||||
export { };
|
||||
@@ -0,0 +1,4 @@
|
||||
import * as puppeteer from "puppeteer";
|
||||
|
||||
const myBrowser: puppeteer.Browser = browser;
|
||||
const myPage: puppeteer.Page = page;
|
||||
23
types/jest-environment-puppeteer/tsconfig.json
Normal file
23
types/jest-environment-puppeteer/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"jest-environment-puppeteer-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/jest-environment-puppeteer/tslint.json
Normal file
1
types/jest-environment-puppeteer/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user