UNPKG

901 BJavaScriptView Raw
1"use strict";
2// Copyright IBM Corp. 2017,2020. All Rights Reserved.
3// Node module: @loopback/repository
4// This file is licensed under the MIT License.
5// License text available at https://opensource.org/licenses/MIT
6Object.defineProperty(exports, "__esModule", { value: true });
7exports.CountSchema = void 0;
8/**
9 * JSON Schema describing the Count interface. It's the response type for
10 * REST calls to APIs which return `count`. The type is compatible with
11 * `SchemaObject` from `@loopback/openapi-v3`, which is not an explicit
12 * dependency for `@loopback/repository`.
13 */
14exports.CountSchema /* :SchemaObject */ = {
15 type: 'object',
16 title: 'loopback.Count',
17 'x-typescript-type': '@loopback/repository#Count',
18 properties: {
19 count: {
20 type: 'number', // Force to be `number` type instead of `string`
21 },
22 },
23};
24//# sourceMappingURL=common-types.js.map
\No newline at end of file