docs: fix typos in the js documentation (#11754)

This commit is contained in:
Piotr Kuczynski 2025-11-09 21:57:31 +01:00 committed by GitHub
parent 08a9397491
commit 6381c8d519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 21 additions and 21 deletions

View File

@ -3,7 +3,7 @@ import { RelationMetadataArgs } from "../../metadata-args/RelationMetadataArgs"
import { RelationOptions } from "../options/RelationOptions"
/**
* Marks a entity property as a children of the tree.
* Marks an entity property as a children of the tree.
* "Tree children" will contain all children (bind) of this entity.
*/
export function TreeChildren(options?: {

View File

@ -4,7 +4,7 @@ import { OnDeleteType } from "../../metadata/types/OnDeleteType"
import { RelationOptions } from "../options/RelationOptions"
/**
* Marks a entity property as a parent of the tree.
* Marks an entity property as a parent of the tree.
* "Tree parent" indicates who owns (is a parent) of this entity in tree structure.
*/
export function TreeParent(options?: {

View File

@ -1608,7 +1608,7 @@ export class AuroraMysqlQueryRunner
}
/**
* Drops an unique constraint.
* Drops a unique constraint.
*/
async dropUniqueConstraint(
tableOrName: Table | string,
@ -1620,7 +1620,7 @@ export class AuroraMysqlQueryRunner
}
/**
* Drops an unique constraints.
* Drops a unique constraints.
*/
async dropUniqueConstraints(
tableOrName: Table | string,

View File

@ -533,15 +533,15 @@ export class MongoQueryRunner implements QueryRunner {
}
/**
* For MongoDB database we don't create connection, because its single connection already created by a driver.
* For MongoDB database we don't create a connection because its single connection already created by a driver.
*/
async connect(): Promise<any> {}
/**
* For MongoDB database we don't release connection, because its single connection.
* For MongoDB database we don't release the connection because it is a single connection.
*/
async release(): Promise<void> {
// releasing connection are not supported by mongodb driver, so simply don't do anything here
// the mongodb driver does not support releasing connection, so simply don't do anything here
}
/**
@ -983,7 +983,7 @@ export class MongoQueryRunner implements QueryRunner {
}
/**
* Drops an unique constraint.
* Drops a unique constraint.
*/
async dropUniqueConstraint(
tableOrName: Table | string,
@ -995,7 +995,7 @@ export class MongoQueryRunner implements QueryRunner {
}
/**
* Drops an unique constraints.
* Drops unique constraints.
*/
async dropUniqueConstraints(
tableOrName: Table | string,

View File

@ -2755,7 +2755,7 @@ export declare interface CreateIndexesOptions
extends Omit<CommandOperationOptions, "writeConcern"> {
/** Creates the index in the background, yielding whenever possible. */
background?: boolean
/** Creates an unique index. */
/** Creates a unique index. */
unique?: boolean
/** Override the autogenerated index name (useful if the resulting name is larger than 128 bytes) */
name?: string

View File

@ -1994,7 +1994,7 @@ export class MysqlQueryRunner extends BaseQueryRunner implements QueryRunner {
}
/**
* Drops an unique constraint.
* Drops a unique constraint.
*/
async dropUniqueConstraint(
tableOrName: Table | string,
@ -2006,7 +2006,7 @@ export class MysqlQueryRunner extends BaseQueryRunner implements QueryRunner {
}
/**
* Drops an unique constraints.
* Drops a unique constraints.
*/
async dropUniqueConstraints(
tableOrName: Table | string,

View File

@ -1901,7 +1901,7 @@ export class OracleQueryRunner extends BaseQueryRunner implements QueryRunner {
}
/**
* Drops an unique constraint.
* Drops a unique constraint.
*/
async dropUniqueConstraint(
tableOrName: Table | string,
@ -1925,7 +1925,7 @@ export class OracleQueryRunner extends BaseQueryRunner implements QueryRunner {
}
/**
* Creates an unique constraints.
* Creates a unique constraints.
*/
async dropUniqueConstraints(
tableOrName: Table | string,

View File

@ -2145,7 +2145,7 @@ export class SapQueryRunner extends BaseQueryRunner implements QueryRunner {
}
/**
* Drops an unique constraints.
* Drops unique constraints.
*/
async dropUniqueConstraints(
tableOrName: Table | string,

View File

@ -1145,7 +1145,7 @@ export class SpannerQueryRunner extends BaseQueryRunner implements QueryRunner {
}
/**
* Creates new check constraint.
* Creates a new check constraint.
*/
async createCheckConstraint(
tableOrName: Table | string,

View File

@ -861,7 +861,7 @@ export abstract class AbstractSqliteQueryRunner
}
/**
* Drops an unique constraint.
* Drops a unique constraint.
*/
async dropUniqueConstraint(
tableOrName: Table | string,
@ -882,7 +882,7 @@ export abstract class AbstractSqliteQueryRunner
}
/**
* Creates an unique constraints.
* Creates a unique constraints.
*/
async dropUniqueConstraints(
tableOrName: Table | string,

View File

@ -2311,7 +2311,7 @@ export class SqlServerQueryRunner
}
/**
* Drops an unique constraints.
* Drops unique constraints.
*/
async dropUniqueConstraints(
tableOrName: Table | string,

View File

@ -385,7 +385,7 @@ export interface QueryRunner {
): Promise<void>
/**
* Drops an unique constraint.
* Drops a unique constraint.
*/
dropUniqueConstraint(
table: Table | string,

View File

@ -20,7 +20,7 @@ describe("entity-schema > uniques", () => {
beforeEach(() => reloadTestingDatabases(connections))
after(() => closeTestingConnections(connections))
it("should create an unique constraint with 2 columns", () =>
it("should create a unique constraint with 2 columns", () =>
Promise.all(
connections.map(async (connection) => {
const queryRunner = connection.createQueryRunner()