MCPcopy Create free account

hub / github.com/loopbackio/loopback-next / functions

Functions4,891 in github.com/loopbackio/loopback-next

↓ 1,703 callersMethodeql
(expected: any, description?: string)
packages/testlab/should-as-function.d.ts:72
↓ 1,044 callersMethodequal
(actual: any, expected: any, message?: string)
packages/testlab/should-as-function.d.ts:204
↓ 941 callersMethodget
* Get an entry by key * @param modelClass - Model class * @param key - Key for the entry * @param options - Options for the operation * @r
packages/repository/src/connectors/kv.connector.ts:44
↓ 929 callersMethodbind
* A static method to create a binding so that we can do * `Binding.bind('foo').to('bar');` as `new Binding('foo').to('bar')` is not * easy to re
packages/context/src/binding.ts:1024
↓ 771 callersMethodcreate
* Create a new record * @param dataObject - The data to be created * @param options - Options for the operations * @returns A promise of reco
packages/repository/src/repositories/repository.ts:81
↓ 719 callersFunctiondescribe
()
packages/rest/src/router/base-route.ts:38
↓ 591 callersFunctioninject
( bindingSelector: BindingSelector, metadata?: InjectionMetadata, resolve?: ResolverFunction, )
packages/context/src/inject.ts:128
↓ 544 callersFunctionproperty
(definition?: Partial<PropertyDefinition>)
packages/repository/src/decorators/model.decorator.ts:125
↓ 527 callersMethodto
* Bind the key to a constant value. The value must be already available * at binding time, it is not allowed to pass a Promise instance. * *
packages/context/src/binding.ts:740
↓ 414 callersFunctiondescribe
(e: ResolutionElement)
packages/context/src/resolution-session.ts:298
↓ 381 callersMethoddeepEqual
(actual: any, expected: any, message?: string)
packages/testlab/should-as-function.d.ts:206
↓ 369 callersFunctiontoJSON
(value: T)
packages/testlab/src/to-json.ts:52
↓ 329 callersFunctionbeforeEach
* `beforeEach` is only for testing purposes in the controller, * Calling `syncSequelizeModel` ensures that corresponding table * exists before c
extensions/sequelize/src/__tests__/fixtures/controllers/test.controller.base.ts:16
↓ 325 callersMethodtrue
()
packages/testlab/should-as-function.d.ts:53
↓ 311 callersFunctionmodel
(definition?: Partial<ModelDefinitionSyntax>)
packages/repository/src/decorators/model.decorator.ts:42
↓ 298 callersMethodproperty
(name: string, description?: string)
packages/testlab/should-as-function.d.ts:102
↓ 278 callersMethodresolve
* Resolve values for the matching bindings * @param session - Resolution session
packages/context/src/context-view.ts:196
↓ 273 callersFunctioncontext
()
packages/context/src/inject.ts:395
↓ 265 callersMethodtoClass
* Bind the key to an instance of the given class. * * @param ctor - The class constructor to call. Any constructor * arguments must be anno
packages/context/src/binding.ts:875
↓ 257 callersMethodbuild
( application: ApplicationWithRepositories, modelClass: typeof Model & {prototype: Model}, config:
packages/model-api-builder/src/model-api-builder.ts:20
↓ 254 callersMethodcontainEql
(obj: any)
packages/testlab/should-as-function.d.ts:115
↓ 252 callersMethodstart
* The method to be invoked during `start`
packages/core/src/lifecycle.ts:29
↓ 238 callersMethodfalse
()
packages/testlab/should-as-function.d.ts:54
↓ 237 callersMethodtag
* Tag the binding with names or name/value objects. A tag has a name and * an optional value. If not supplied, the tag name is used as the value.
packages/context/src/binding.ts:668
↓ 235 callersMethodset
* Set an entry with key/value * @param modelClass - Model class * @param key - Key for the entry * @param value - Value for the entry * @p
packages/repository/src/connectors/kv.connector.ts:55
↓ 215 callersMethodmatch
(other: {}, description?: string)
packages/testlab/should-as-function.d.ts:89
↓ 206 callersMethodstop
* The method to be invoked during `stop`
packages/core/src/lifecycle.ts:33
↓ 200 callersMethodlog
(message: string)
packages/core/src/__tests__/acceptance/extension-point.acceptance.ts:207
↓ 188 callersFunctionget
(what)
packages/cli/lib/utils.js:51
↓ 188 callersFunctiongetModelSchemaRef
( modelCtor: Function & {prototype: T}, options?: JsonSchemaOptions<T>, )
packages/openapi-v3/src/controller-spec.ts:564
↓ 186 callersFunctioninjectable
(...specs: BindingSpec[])
packages/context/src/binding-decorator.ts:67
↓ 186 callersMethodrejectedWith
(err: Function | string | RegExp, properties?: {})
packages/testlab/should-as-function.d.ts:133
↓ 183 callersMethodfind
* Find a matching route for the given http request * @param request - Http request * @returns The resolved route, if not found, `undefined` is r
packages/rest/src/router/rest-router.ts:25
↓ 182 callersMethodgetSync
( keyWithPath: BindingAddress<ValueType>, optionsOrSession?: ResolutionOptionsOrSession, )
packages/context/src/context.ts:777
↓ 179 callersMethodfind
* Find matching records * @param filter - Query filter * @param options - Options for the operations * @returns A promise of an array of reco
packages/repository/src/repositories/repository.ts:97
↓ 168 callersMethodthrow
(propereties?: {})
packages/testlab/should-as-function.d.ts:124
↓ 163 callersFunctionrequestBody
(requestBodySpec?: Partial<RequestBodyObject>)
packages/openapi-v3/src/decorators/request-body.decorator.ts:80
↓ 162 callersFunctionget
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:19
↓ 155 callersMethodexit
* Tell this generator to exit with the given reason * @param {string|Error} reason
packages/cli/lib/base-generator.js:360
↓ 154 callersMethodcontainDeep
(obj: any)
packages/testlab/should-as-function.d.ts:116
↓ 152 callersMethodundefined
()
packages/testlab/should-as-function.d.ts:178
↓ 143 callersFunctiongetControllerSpec
(constructor: Function)
packages/openapi-v3/src/controller-spec.ts:524
↓ 140 callersMethodfindById
* Find an entity by id * @param modelClass - The model class * @param id - The entity id value * @param options - Options for the operation
packages/repository/src/connectors/crud.connector.ts:74
↓ 139 callersFunctionresolve
* Resolve the value or promise for a given injection * @param ctx - Context * @param injection - Descriptor of the injection * @param session - Opt
packages/context/src/resolver.ts:127
↓ 131 callersFunctiontest
( paramSpec: ParameterObject, rawValue: string | undefined | object, expectedResult: T, opts?: TestOpt
packages/rest/src/__tests__/unit/coercion/utils.ts:109
↓ 119 callersFunctioncreateBindingFromClass
( cls: Constructor<T | Provider<T>> | DynamicValueProviderClass<T>, options: BindingFromClassOptions = {},
packages/context/src/binding-inspector.ts:266
↓ 112 callersMethodboot
* Boot up the project
packages/boot/src/types.ts:128
↓ 112 callersFunctionpost
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:31
↓ 111 callersMethodshouldExit
* Check if the generator should exit
packages/cli/lib/base-generator.js:444
↓ 109 callersFunctionresponse
( statusCode: number, description: string, payload: MediaTypeObject, )
packages/rest-crud/src/crud-rest.controller.ts:323
↓ 106 callersMethodcoerce
* Coerce the value into this type * @param value - The value to be coerced * @param options - Options for coercion * @returns Coerced value o
packages/repository/src/types/type.ts:43
↓ 106 callersMethodisInstance
* Test if the given value is an instance of this type * @param value - The value
packages/repository/src/types/type.ts:23
↓ 105 callersMethodcomponent
(component: Constructor<{}>, name?: string)
packages/service-proxy/src/mixins/service.mixin.ts:150
↓ 100 callersMethodisCoercible
* Check if the given value can be coerced into this type * @param value - The value to to be coerced * @returns A flag to indicate if the value
packages/repository/src/types/type.ts:35
↓ 100 callersMethodtoDynamicValue
* Bind the key to a computed (dynamic) value. * * @param factoryFn - The factory function creating the value. * Both sync and async functio
packages/context/src/binding.ts:794
↓ 98 callersMethodconfigure
* Configure phase of the Booter. It should set options / defaults in this phase.
packages/boot/src/types.ts:54
↓ 97 callersMethodlength
(n: number, description?: string)
packages/testlab/should-as-function.d.ts:101
↓ 94 callersMethodaddProperty
* Add a property * @param name - Property definition or name (string) * @param definitionOrType - Definition or property type
packages/repository/src/model.ts:150
↓ 93 callersFunctionexpectFileToMatchSnapshot
(filePath)
packages/cli/test/snapshots.js:17
↓ 93 callersMethodreset
* Resets the TestSandbox. (Remove all files in it).
packages/testlab/src/test-sandbox.ts:96
↓ 88 callersMethoddeleteAll
* Delete all entries * @param modelClass - Model class * @param options - Options for the operation * @returns A promise of the number of ent
packages/repository/src/connectors/kv.connector.ts:35
↓ 88 callersMethoderror
()
examples/log-extension/src/__tests__/acceptance/log.extension.acceptance.ts:282
↓ 81 callersMethodFunction
()
packages/testlab/should-as-function.d.ts:63
↓ 80 callersMethodgetOwnMetadata
* get own metadata for a target object or it's property/method
packages/metadata/src/reflect.ts:55
↓ 77 callersFunctionanOperationSpec
()
packages/openapi-spec-builder/src/openapi-spec-builder.ts:36
↓ 77 callersMethodinScope
* Set the binding scope * @param scope - Binding scope
packages/context/src/binding.ts:696
↓ 76 callersMethodinstanceOf
(constructor: Function, description?: string)
packages/testlab/should-as-function.d.ts:170
↓ 74 callersMethodapply
* Apply one or more template functions to set up the binding with scope, * tags, and other attributes as a group. * * @example * ```ts
packages/context/src/binding.ts:967
↓ 73 callersMethodtoJSON
* Serialize into a plain JSON object
packages/repository/src/model.ts:341
↓ 71 callersMethodcontroller
* Register a controller class with this server. * * @param controllerCtor - The controller class * (constructor function). * @returns The
packages/rest/src/rest.server.ts:611
↓ 70 callersFunctiongivenHttpServerConfig
( customConfig?: T, )
packages/testlab/src/http-server-config.ts:52
↓ 68 callersMethodcopyFile
* Copies a file from src to the TestSandbox. If copying a `.js` file which * has an accompanying `.js.map` file in the src file location, the dest
packages/testlab/src/test-sandbox.ts:137
↓ 68 callersMethodparse
* Parse the request body * @param request - http request
packages/rest/src/body-parsers/types.ts:49
↓ 67 callersFunctionconfig
( propertyPath?: string | ConfigInjectionMetadata, metadata?: ConfigInjectionMetadata, )
packages/context/src/inject-config.ts:64
↓ 67 callersFunctioncreateClientForHandler
( handler: (req: http.IncomingMessage, res: http.ServerResponse) => void, )
packages/testlab/src/client.ts:22
↓ 65 callersMethodcalledWith
(...arguments: any[])
packages/testlab/should-as-function.d.ts:155
↓ 65 callersFunctioncreateRestAppClient
(app: RestApplicationLike)
packages/testlab/src/client.ts:35
↓ 65 callersMethodexactly
(expected: any, description?: string)
packages/testlab/should-as-function.d.ts:169
↓ 64 callersMethodkeys
(...allKeys: string[])
packages/testlab/should-as-function.d.ts:118
↓ 63 callersMethodcreateDecorator
* Create a class decorator function * @param key - Metadata key * @param spec - Metadata object from the decorator function * @param options
packages/metadata/src/decorator-factory.ts:429
↓ 63 callersFunctionfilterByTag
(tagPattern: BindingTag | RegExp)
packages/context/src/binding-filter.ts:165
↓ 62 callersFunctionauthenticate
( ...strategies: (string | AuthenticationMetadata)[] )
packages/authentication/src/decorators/authenticate.decorator.ts:30
↓ 61 callersMethodbind
* Create a binding with the given key in the context. If a locked binding * already exists with the same key, an error will be thrown. * * @p
packages/context/src/context.ts:218
↓ 61 callersMethodgetBinding
( key: BindingAddress<ValueType>, options?: {optional?: boolean}, )
packages/context/src/context.ts:822
↓ 61 callersFunctionpatch
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:55
↓ 60 callersFunctionrepository
( modelOrRepo: string | Class<Repository<Model>> | typeof Entity, dataSource?: string | juggler.DataSource
packages/repository/src/decorators/repository.decorator.ts:138
↓ 59 callersFunctionanOpenApiSpec
()
packages/openapi-spec-builder/src/openapi-spec-builder.ts:29
↓ 59 callersMethoddelete
* Delete an entry by key * @param modelClass - Model class * @param key - Key for the entry * @param options - Options for the operation *
packages/repository/src/connectors/kv.connector.ts:23
↓ 58 callersMethodtoProvider
* Bind the key to a value computed by a Provider. * * * @example * * ```ts * export class DateProvider implements Provider<Date> { *
packages/context/src/binding.ts:847
↓ 57 callersMethodprompt
* Override the base prompt to skip prompts with default answers * @param questions - One or more questions
packages/cli/lib/base-generator.js:297
↓ 57 callersMethodwhere
* Declare a where clause * @param w - Where object
packages/filter/src/query.ts:668
↓ 56 callersFunctiongivenAServer
( options: {rest: RestServerConfig} = {rest: {port: 0}}, )
packages/rest/src/__tests__/integration/rest.server.integration.ts:1431
↓ 56 callersFunctionintercept
(...interceptorOrKeys: InterceptorOrKey[])
packages/context/src/interceptor.ts:283
↓ 55 callersFunctionmodelToJsonSchema
( ctor: Function & {prototype: T}, jsonSchemaOptions: JsonSchemaOptions<T> = {}, )
packages/repository-json-schema/src/build-schema.ts:434
↓ 55 callersMethodquery
()
packages/core/src/__tests__/unit/service.unit.ts:555
↓ 53 callersMethodvalues
* Get values for the configuration with a property path * @param session - Resolution session
packages/context/src/inject-config.ts:234
↓ 51 callersMethodfindByTag
* Find bindings using the tag filter. If the filter matches one of the * binding tags, the binding is included. * * @param tagFilter - A filt
packages/context/src/context.ts:622
↓ 51 callersMethodgetServer
* Retrieve the singleton instance for a bound server. * * @typeParam T - Server type * @param ctor - The constructor that was used to make th
packages/core/src/application.ts:246
↓ 50 callersMethodadd
(args: CalculatorParameters)
examples/soap-calculator/src/services/calculator.service.ts:38
↓ 50 callersMethodok
(value: any, message?: string)
packages/testlab/should-as-function.d.ts:203
next →1–100 of 4,891, ranked by callers