mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Merge pull request #34439 from ddimitrioglo/master
Add type definitions for square-connect npm library
This commit is contained in:
Vendored
+9033
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
import { CreateOrderRequest } from 'square-connect';
|
||||
|
||||
const createOrderRequest: CreateOrderRequest = {
|
||||
idempotency_key: 'optional',
|
||||
order: {
|
||||
location_id: 'required',
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"types": [],
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"noEmit": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"square-connect-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"array-type": [true, "generic"],
|
||||
"no-empty-interface": false,
|
||||
"strict-export-declare-modifiers": false,
|
||||
"object-literal-key-quotes": [true, "as-needed"],
|
||||
"typedef": [
|
||||
true,
|
||||
"call-signature",
|
||||
"arrow-call-signature",
|
||||
"parameter",
|
||||
"arrow-parameter",
|
||||
"property-declaration",
|
||||
"member-variable-declaration",
|
||||
"object-destructuring",
|
||||
"array-destructuring"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user