Skip to content

refactor: Fix autogenerate TS types #2460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
with:
cache: npm
- run: npm ci
- name: Build Types
run: npm run build:types
- name: Test Types
run: npm run test:types 2>&1 | tee silent.txt;
check-docs:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
},
"scripts": {
"build": "node build_releases.js",
"build:types": "tsc && prettier --write 'types/{**/*,*}.ts' && npm run lint:fix",
"build:types": "tsc",
"release": "node build_releases.js && npm publish",
"test": "cross-env PARSE_BUILD=node jest",
"test:mongodb": "npm run test:mongodb:runnerstart && npm run integration",
Expand All @@ -114,7 +114,7 @@
"docs": "jsdoc -c ./jsdoc-conf.json ./src",
"madge:circular": "madge ./src --extensions js,ts --circular",
"prepare": "husky && npm run build",
"pre-commit": "lint-staged",
"pre-commit": "lint-staged && npm run build:types",
"release_docs": "./release_docs.sh",
"gulp": "gulp",
"prettier": "prettier --write '{src,integration,types}/{**/*,*}.{js,ts}' && npm run lint:fix",
Expand Down
7 changes: 2 additions & 5 deletions types/Analytics.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
* @returns {Promise} A promise that is resolved when the round-trip
* to the server completes.
*/
export declare function track(
name: string,
dimensions: {
export declare function track(name: string, dimensions: {
[key: string]: string;
}
): Promise<void>;
}): Promise<void>;
100 changes: 50 additions & 50 deletions types/AnonymousUtils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,56 +29,56 @@ import type { RequestOptions } from './RESTController';
* @static
*/
declare const AnonymousUtils: {
/**
* Gets whether the user has their account linked to anonymous user.
*
* @function isLinked
* @name Parse.AnonymousUtils.isLinked
* @param {Parse.User} user User to check for.
* The user must be logged in on this device.
* @returns {boolean} <code>true</code> if the user has their account
* linked to an anonymous user.
* @static
*/
isLinked(user: ParseUser): boolean;
/**
* Logs in a user Anonymously.
*
* @function logIn
* @name Parse.AnonymousUtils.logIn
* @param {object} options MasterKey / SessionToken.
* @returns {Promise} Logged in user
* @static
*/
logIn(options?: RequestOptions): Promise<ParseUser>;
/**
* Links Anonymous User to an existing PFUser.
*
* @function link
* @name Parse.AnonymousUtils.link
* @param {Parse.User} user User to link. This must be the current user.
* @param {object} options MasterKey / SessionToken.
* @returns {Promise} Linked with User
* @static
*/
link(user: ParseUser, options?: RequestOptions): Promise<ParseUser>;
/**
* Returns true if Authentication Provider has been registered for use.
*
* @function isRegistered
* @name Parse.AnonymousUtils.isRegistered
* @returns {boolean}
* @static
*/
isRegistered(): boolean;
_getAuthProvider(): {
restoreAuthentication(): boolean;
getAuthType(): string;
getAuthData(): {
authData: {
id: string;
};
/**
* Gets whether the user has their account linked to anonymous user.
*
* @function isLinked
* @name Parse.AnonymousUtils.isLinked
* @param {Parse.User} user User to check for.
* The user must be logged in on this device.
* @returns {boolean} <code>true</code> if the user has their account
* linked to an anonymous user.
* @static
*/
isLinked(user: ParseUser): boolean;
/**
* Logs in a user Anonymously.
*
* @function logIn
* @name Parse.AnonymousUtils.logIn
* @param {object} options MasterKey / SessionToken.
* @returns {Promise} Logged in user
* @static
*/
logIn(options?: RequestOptions): Promise<ParseUser>;
/**
* Links Anonymous User to an existing PFUser.
*
* @function link
* @name Parse.AnonymousUtils.link
* @param {Parse.User} user User to link. This must be the current user.
* @param {object} options MasterKey / SessionToken.
* @returns {Promise} Linked with User
* @static
*/
link(user: ParseUser, options?: RequestOptions): Promise<ParseUser>;
/**
* Returns true if Authentication Provider has been registered for use.
*
* @function isRegistered
* @name Parse.AnonymousUtils.isRegistered
* @returns {boolean}
* @static
*/
isRegistered(): boolean;
_getAuthProvider(): {
restoreAuthentication(): boolean;
getAuthType(): string;
getAuthData(): {
authData: {
id: string;
};
};
};
};
};
export default AnonymousUtils;
Loading
Loading