Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions types/electron-to-chromium/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!**/*.d.ts
!**/*.d.cts
!**/*.d.mts
!**/*.d.*.ts
2 changes: 2 additions & 0 deletions types/electron-to-chromium/chromium-versions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: Record<string, string>;
export = _default;
18 changes: 18 additions & 0 deletions types/electron-to-chromium/electron-to-chromium-tests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import e2c = require("electron-to-chromium");

e2c.versions;
e2c.fullVersions;
e2c.chromiumVersions;
e2c.fullChromiumVersions;

e2c.electronToChromium("123");
e2c.electronToChromium(123);
e2c.chromiumToElectron("123");
e2c.chromiumToElectron(123);
e2c.electronToBrowserList("123");
e2c.electronToBrowserList(123);

import _versions = require("electron-to-chromium/versions");
import _fullVersions = require("electron-to-chromium/full-versions");
import _chromiumVersions = require("electron-to-chromium/chromium-versions");
import _fullChromiumVersions = require("electron-to-chromium/full-chromium-versions");
2 changes: 2 additions & 0 deletions types/electron-to-chromium/full-chromium-versions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: Record<string, string>;
export = _default;
2 changes: 2 additions & 0 deletions types/electron-to-chromium/full-versions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: Record<string, string>;
export = _default;
46 changes: 46 additions & 0 deletions types/electron-to-chromium/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* An object of key-value pairs with a major Electron version as the key,
* and the corresponding major Chromium version as the value.
*/
export const versions: typeof import("./versions");
/**
* An object of key-value pairs with a Electron version as the key,
* and the corresponding full Chromium version as the value.
*/
export const fullVersions: typeof import("./full-versions");
/**
* An object of key-value pairs with a major Chromium version as the key,
* and the corresponding major Electron version as the value.
*/
export const chromiumVersions: typeof import("./chromium-versions");
/**
* An object of key-value pairs with a Chromium version as the key,
* and an array of the corresponding major Electron versions as the value.
*/
export const fullChromiumVersions: typeof import("./full-chromium-versions");

/**
* A function that returns the corresponding Chromium version for a given Electron function.
* If you provide it with a major Electron version, it will return a major Chromium version.
* If you provide it with a full Electron version, it will return the full Chromium version.
* If a query does not match a Chromium version, it will return `undefined`.
*/
export function electronToChromium(query: string | number): string | undefined;

/**
* Returns a string with the corresponding Electron version for a given Chromium query.
* If you provide it with a major Chromium version, it will return a major Electron version.
* If you provide it with a full Chrome version, it will return an array of full Electron versions.
* If a query does not match an Electron version, it will return `undefined`.
*/
export function chromiumToElectron(query: string | number): string | undefined;

/**
* @deprecated
* A function that returns a {@link https://github.com/browserslist/browserslist Browserslist} query
* that matches the given major Electron version.
* If you provide it with a major Electron version,
* it will return a Browserlist query string that matches the Chromium capabilities.
* If a query does not match a Chromium version, it will return `undefined`.
*/
export function electronToBrowserList(query: string | number): string | undefined;
17 changes: 17 additions & 0 deletions types/electron-to-chromium/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"private": true,
"name": "@types/electron-to-chromium",
"version": "1.5.9999",
"projects": [
"https://github.com/kilian/electron-to-chromium#readme"
],
"devDependencies": {
"@types/electron-to-chromium": "workspace:."
},
"owners": [
{
"name": "Adam Thompson-Sharpe",
"githubUsername": "MysteryBlokHed"
}
]
}
19 changes: 19 additions & 0 deletions types/electron-to-chromium/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "node16",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"electron-to-chromium-tests.ts"
]
}
2 changes: 2 additions & 0 deletions types/electron-to-chromium/versions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: Record<string, string>;
export = _default;
17 changes: 16 additions & 1 deletion types/facebook-nodejs-business-sdk/src/exceptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,20 @@ export declare class FacebookRequestError extends FacebookError {
* @param {Object} data
*/
constructor(response: any, method: any, url: any, data: any);

name: string;
message: string;
stack: string;
status: number;
response: {
message: string;
type: string;
code: number;
fbtrace_id: string;
}
headers: { [key: string]: string };
method: string;
url: string;
data: { data: object[], id: string };
}
export {};
export { };
5 changes: 5 additions & 0 deletions types/is-fqdn/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!**/*.d.ts
!**/*.d.cts
!**/*.d.mts
!**/*.d.*.ts
20 changes: 20 additions & 0 deletions types/is-fqdn/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
declare namespace isFQDN {
interface Options {
/**
* @default true
*/
requireTld?: boolean | undefined;
/**
* @default false
*/
allowUnderscores?: boolean | undefined;
/**
* @default false
*/
allowTrailingDot?: boolean | undefined;
}
}

declare function isFQDN(str: string, options?: isFQDN.Options): boolean;

export = isFQDN;
15 changes: 15 additions & 0 deletions types/is-fqdn/is-fqdn-tests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import isFQDN = require("is-fqdn");

// @ts-expect-error No arguments
isFQDN();

// $ExpectType boolean
isFQDN("foo");
// $ExpectType boolean
isFQDN("foo", {});
// $ExpectType boolean
isFQDN("foo", {
requireTld: true,
allowUnderscores: true,
allowTrailingDot: true,
});
17 changes: 17 additions & 0 deletions types/is-fqdn/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"private": true,
"name": "@types/is-fqdn",
"version": "2.0.9999",
"projects": [
"https://github.com/parro-it/is-fqdn#readme"
],
"devDependencies": {
"@types/is-fqdn": "workspace:."
},
"owners": [
{
"name": "Adam Thompson-Sharpe",
"githubUsername": "MysteryBlokHed"
}
]
}
17 changes: 17 additions & 0 deletions types/is-fqdn/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"module": "node16",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"is-fqdn-tests.ts"
]
}