repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
lakshay-pant/vynoFinalBack | src/main.ts | <reponame>lakshay-pant/vynoFinalBack<filename>src/main.ts
import { NestFactory } from '@nestjs/core';
import { VersioningType } from '@nestjs/common';
import { AppModule } from './app.module';
import { NestExpressApplication } from '@nestjs/platform-express';
import { NestFastifyApplication, FastifyAdapter } from '@nes... |
lakshay-pant/vynoFinalBack | dist/src/payment/payment.controller.d.ts | <filename>dist/src/payment/payment.controller.d.ts
import { PaymentService } from './payment.service';
import { UpdatePaymentDto } from './dto/update-payment.dto';
import { UsersService } from '../users/users.service';
import { HelperService } from '../common/helper';
export declare class PaymentController {
privat... |
lakshay-pant/vynoFinalBack | dist/src/document/document.controller.d.ts | <reponame>lakshay-pant/vynoFinalBack
/// <reference types="multer" />
import { DocumentService } from './document.service';
import { CreateDocumentDto } from './dto/create-document.dto';
import { HelperService } from '../common/helper';
import { JwtService } from '@nestjs/jwt';
export declare class DocumentController {... |
lakshay-pant/vynoFinalBack | dist/src/singup/singup.controller.d.ts | import { SingupService } from './singup.service';
import { UsersService } from '../users/users.service';
import { CreateUserDto } from '../users/dto/create-user.dto';
import { Request, Response } from 'express';
import { HelperService } from '../common/helper';
import { JwtService } from '@nestjs/jwt';
export declare c... |
lakshay-pant/vynoFinalBack | dist/src/lift/lift.service.d.ts | <reponame>lakshay-pant/vynoFinalBack<gh_stars>0
import { CreateLiftDto } from './dto/create-lift.dto';
import { UpdateLiftDto } from './dto/update-lift.dto';
import { Model } from 'mongoose';
export declare class LiftService {
private liftModel;
private liftRequestModel;
private liftBookingModel;
privat... |
lakshay-pant/vynoFinalBack | dist/src/address/schemas/address.schema.d.ts | <filename>dist/src/address/schemas/address.schema.d.ts
import { Document } from 'mongoose';
import { User } from '../../users/schemas/user.schema';
import * as mongoose from 'mongoose';
export declare type AddressDocument = Address & Document;
export declare class Address {
user_id: User;
type: string;
lat:... |
lakshay-pant/vynoFinalBack | src/singup/dto/create-singup.dto.ts | export class CreateSingupDto {}
|
lakshay-pant/vynoFinalBack | src/document/document.module.ts | import { Module } from '@nestjs/common';
import { DocumentService } from './document.service';
import { MongooseModule } from '@nestjs/mongoose';
import { JwtModule } from '@nestjs/jwt';
import { DocumentController } from './document.controller';
import { Documents, DocumentsSchema } from './schemas/document.schema';
i... |
sthagen/vuepress | packages/@vuepress/types/index.d.ts | <filename>packages/@vuepress/types/index.d.ts
import {
UserConfig,
ThemeConfig,
PluginOptions,
DefaultThemeConfig,
Theme,
Plugin,
} from './src'
export * from './src'
/**
* A helper function to define VuePress config file.
*
* @see https://vuepress.vuejs.org/config/
*/
export function defineConfig(con... |
Ch4m0/cursoUdemy | src/app/components/home.component.ts | <reponame>Ch4m0/cursoUdemy
import { Component } from '@angular/core';
@Component({
selector: 'home',
templateUrl: './../views/home.html'
})
export class HomeComponent{
public titulo: string;
constructor(){
this.titulo = 'pagina principal';
}
ngOnInit(){
console.log("cargo el componente home");
}
} |
ccosta-fbk/pxt-lamponi | test.ts | // tests go here; this will not be compiled when this package is used as a library
lamponi.showFunFace()
basic.forever(function () {}) |
ccosta-fbk/pxt-lamponi | main.ts | <gh_stars>0
/**
* MakeCode extension di test lamponi
*/
//% color=#009b5b icon="\f025" block="Lamponi"
namespace lamponi {
/**
* Show FunFace
*/
//% block="Show Fun Face"
export function showFunFace() {
basic.showLeds(`
. . . . .
. # . # .
. . # . .
... |
RubaXa/effector | src/types/types.test.ts | // @flow
/* eslint-disable no-unused-vars */
import * as React from 'react'
import {
step,
createStore,
createNode,
createEvent,
createEffect,
createApi,
createStoreObject,
createDomain,
clearNode,
restoreEffect,
combine,
sample,
Effect,
Store,
Event,
//ComputedStore,
//ComputedEvent,
... |
brad-jones/openapi-spec-builder | src/v2/Strict/ISchema.ts | import { FormatType, Type } from '../TypeDefs';
import IExternalDocs from './IExternalDocs';
import ISharedSchema from './ISharedSchema';
import IXml from './IXml';
/**
* The Schema Object allows the definition of input and output data types.
*
* These types can be objects, but also primitives and arrays. This obj... |
brad-jones/openapi-spec-builder | src/v2/Strict/ISpec.ts | <gh_stars>1-10
import IExternalDocs from "./IExternalDocs";
import IInfo from "./IInfo";
import IParameter from "./IParameter";
import IPath from "./IPath";
import IResponses from './IResponses';
import ISchema from "./ISchema";
import ISecurityRequirment from './ISecurityRequirment';
import ISecuritySchema from "./ISe... |
brad-jones/openapi-spec-builder | src/v2/Modified/IItems.ts | <gh_stars>1-10
import { FormatType } from '../TypeDefs';
import ISharedSchema from './ISharedSchema';
/**
* A limited subset of JSON-Schema's items object.
*
* It is used by parameter definitions that are not
* located in "body" as well as header definitions.
*
* @see https://github.com/OAI/OpenAPI-Specification... |
brad-jones/openapi-spec-builder | src/v2/Modified/IExample.ts | /**
* Allows sharing examples for operation responses.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#example-object
*/
interface IExample
{
/**
* The name of the property MUST be one of the Operation
* produces values (either implicit or inherited).
*
* Th... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IOpenAPI.ts | import ITag from './ITag';
import IInfo from './IInfo';
import IPath from './IPath';
import IServer from './IServer';
import IComponent from './IComponent';
import IExternalDocs from './IExternalDocs';
import ISecurityRequirement from './ISecurityRequirement';
import ISpecificationExtension from './ISpecificationExtens... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IParameter.ts | import { ParameterLocation, SerializationStyle } from '../TypeDefs';
import ISchema from './ISchema';
import IExample from './IExample';
import IReference from './IReference';
import IMediaType from './IMediaType';
import ISpecificationExtension from './ISpecificationExtension';
/**
* Describes a single operation par... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IExternalDocs.ts | <reponame>brad-jones/openapi-spec-builder<filename>src/v3.0.0/Strict/IExternalDocs.ts<gh_stars>1-10
import ISpecificationExtension from './ISpecificationExtension';
/**
* Allows referencing an external resource for extended documentation.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.... |
brad-jones/openapi-spec-builder | src/v2/Strict/IResponse.ts | import IExample from "./IExample";
import IHeader from "./IHeader";
import ISchema from "./ISchema";
/**
* Describes a single response from an API Operation.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#response-object
*/
interface IResponse
{
/**
* Required. A short d... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/ISecurityScheme.ts | <reponame>brad-jones/openapi-spec-builder
import { SecuritySchemeType, SecuritySchemeIn } from '../TypeDefs';
import IOAuthFlows from './IOAuthFlows';
import ISpecificationExtension from './ISpecificationExtension';
/**
* Defines a security scheme that can be used by the operations.
*
* Supported schemes are HTTP a... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/ISchema.ts | <reponame>brad-jones/openapi-spec-builder<filename>src/v3.0.0/Strict/ISchema.ts<gh_stars>1-10
import { DataType, DataFormat } from '../TypeDefs';
import IXml from './IXml';
import IReference from './IReference';
import IExternalDocs from './IExternalDocs';
import IDiscriminator from './IDiscriminator';
import ISpecific... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IMediaType.ts | import ISchema from './ISchema';
import IExample from './IExample';
import IEncoding from './IEncoding';
import IReference from './IReference';
import ISpecificationExtension from './ISpecificationExtension';
/**
* Each Media Type Object provides schema and examples
* for the media type identified by its key.
*
* ... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IResponse.ts | import ILink from './ILink';
import IHeader from './IHeader';
import IReference from './IReference';
import IMediaType from './IMediaType';
import ISpecificationExtension from './ISpecificationExtension';
/**
* Describes a single response from an API Operation,
* including design-time, static links to operations
* ... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/ITag.ts | import IExternalDocs from './IExternalDocs';
import ISpecificationExtension from './ISpecificationExtension';
/**
* Adds metadata to a single tag that is used by the Operation Object.
*
* It is not mandatory to have a Tag Object per tag defined in the Operation Object instances.
*
* @see https://github.com/OAI/Op... |
brad-jones/openapi-spec-builder | src/v2/Strict/IPath.ts | <filename>src/v2/Strict/IPath.ts
import IOperation from './IOperation';
import IParameter from './IParameter';
import IReference from './IReference';
/**
* Describes the operations available on a single path. A Path Item may be
* empty, due to ACL constraints. The path itself is still exposed to the
* documentation... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IServer.ts | import IServerVariable from './IServerVariable';
import ISpecificationExtension from './ISpecificationExtension';
/**
* An object representing a Server.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#server-object
*/
export default interface IServer extends ISpecificationExtens... |
brad-jones/openapi-spec-builder | src/v2/Strict/IXml.ts | <reponame>brad-jones/openapi-spec-builder
/**
* A metadata object that allows for more fine-tuned XML model definitions.
*
* When using arrays, XML element names are not inferred (for singular/plural
* forms) and the name property should be used to add that information.
*
* @see https://github.com/OAI/OpenAPI-Spe... |
brad-jones/openapi-spec-builder | src/v2/TypeDefs.ts | <reponame>brad-jones/openapi-spec-builder
/**
* The transfer protocol of the API.
*
* Values MUST be from the list: "http", "https", "ws", "wss".
* If the schemes is not included, the default scheme to be used
* is the one used to access the Swagger definition itself.
*
* @see https://github.com/OAI/OpenAPI-Spec... |
brad-jones/openapi-spec-builder | src/v2/Strict/IReference.ts | <gh_stars>1-10
interface IReference
{
/**
* A JSON Reference.
*
* @see https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03
*/
$ref?: string;
}
export default IReference;
|
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IEncoding.ts | <filename>src/v3.0.0/Strict/IEncoding.ts
import { SerializationStyle } from '../TypeDefs';
import IHeader from './IHeader';
import IReference from './IReference';
import ISpecificationExtension from './ISpecificationExtension';
/**
* A single encoding definition applied to a single schema property.
*
* @see https:/... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IOAuthFlows.ts | import IOAuthFlow from './IOAuthFlow';
import ISpecificationExtension from './ISpecificationExtension';
/**
* Allows configuration of the supported OAuth Flows.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#oauth-flows-object
*/
export default interface IOAuthFlows extends ISp... |
brad-jones/openapi-spec-builder | src/v2/Modified/ILicense.ts | <reponame>brad-jones/openapi-spec-builder
/**
* License information for the exposed API.
*
* @https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#license-object
*/
interface ILicense
{
/**
* Required. The license name used for the API.
*/
name?: string;
/**
* A URL t... |
brad-jones/openapi-spec-builder | examples/pet-store/pet-store.ts | <filename>examples/pet-store/pet-store.ts
import IEndpoint from '../../src/v2/Modified/IEndpoint';
import IParameter from '../../src/v2/Modified/IParameter';
import IResponse from '../../src/v2/Modified/IResponse';
import ISchema from '../../src/v2/Modified/ISchema';
import OpenApiSpecBuilder from '../../src/OpenApiSpe... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IRequestBody.ts | import IMediaType from './IMediaType';
import ISpecificationExtension from './ISpecificationExtension';
/**
* Describes a single request body.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#request-body-object
*/
export default interface IRequestBody extends ISpecificationExten... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IInfo.ts | <reponame>brad-jones/openapi-spec-builder
import IContact from './IContact';
import ILicense from './ILicense';
import ISpecificationExtension from './ISpecificationExtension';
/**
* The object provides metadata about the API.
*
* The metadata MAY be used by the clients if needed, and MAY be presented in
* editing... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IPath.ts | <reponame>brad-jones/openapi-spec-builder
import IPathItem from './IPathItem';
import ISpecificationExtension from './ISpecificationExtension';
/**
* Holds the relative paths to the individual endpoints and their operations.
*
* The path is appended to the URL from the Server Object in order to construct
* the ful... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IContact.ts | import ISpecificationExtension from './ISpecificationExtension';
/**
* Contact information for the exposed API.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#contact-object
*/
export default interface IContact extends ISpecificationExtension
{
/**
* The identifying na... |
brad-jones/openapi-spec-builder | src/v2/Modified/IParameter.ts | <gh_stars>1-10
import { FormatType } from '../TypeDefs';
import IItems from './IItems';
import ISchema from './ISchema';
import ISharedSchema from './ISharedSchema';
/**
* Describes a single operation parameter.
*
* A unique parameter is defined by a combination of a name and location.
* There are five possible pa... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IReference.ts | /**
* A simple object to allow referencing other components in the specification,
* internally and externally.
*
* The Reference Object is defined by JSON Reference
* and follows the same structure, behavior and rules.
*
* For this specification, reference resolution is accomplished as defined by
* the JSON Ref... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IServerVariable.ts | <gh_stars>1-10
import ISpecificationExtension from './ISpecificationExtension';
/**
* An object representing a Server Variable for server URL template substitution.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#server-variable-object
*/
export default interface IServerVariable... |
brad-jones/openapi-spec-builder | src/v2/Strict/IOperation.ts | import IExternalDocs from './IExternalDocs';
import IParameter from './IParameter';
import IReference from './IReference';
import IResponses from './IResponses';
import ISecurityRequirment from './ISecurityRequirment';
import { Schemes } from '../TypeDefs';
/**
* Describes a single API operation on a path.
*
* @see... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IOperation.ts | import IServer from './IServer';
import ICallback from './ICallback';
import IResponses from './IResponses';
import IReference from './IReference';
import IParameter from './IParameter';
import IRequestBody from './IRequestBody';
import IExternalDocs from './IExternalDocs';
import ISecurityRequirement from './ISecurity... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IComponent.ts | import ILink from './ILink';
import ISchema from './ISchema';
import IHeader from './IHeader';
import IExample from './IExample';
import IResponse from './IResponse';
import ICallback from './ICallback';
import IReference from './IReference';
import IParameter from './IParameter';
import IRequestBody from './IRequestBo... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IDiscriminator.ts | /**
* When request bodies or response payloads may be one of a number of different
* schemas, a discriminator object can be used to aid in serialization,
* deserialization, and validation.
*
* The discriminator is a specific object in a schema which is used to inform
* the consumer of the specification of an alte... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IXml.ts | import ISpecificationExtension from './ISpecificationExtension';
/**
* A metadata object that allows for more fine-tuned XML model definitions.
*
* When using arrays, XML element names are not inferred (for singular/plural
* forms) and the name property __SHOULD__ be used to add that information.
* @see https://... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IPathItem.ts | <filename>src/v3.0.0/Strict/IPathItem.ts
import IServer from './IServer';
import IOperation from './IOperation';
import IParameter from './IParameter';
import IReference from './IReference';
import ISpecificationExtension from './ISpecificationExtension';
/**
* Describes the operations available on a single path.
*
... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/ISecurityRequirement.ts | /**
* Lists the required security schemes to execute this operation.
*
* The name used for each property __MUST__ correspond to a security scheme
* declared in the Security Schemes under the Components Object.
*
* Security Requirement Objects that contain multiple schemes require that all
* schemes __MUST__ be s... |
brad-jones/openapi-spec-builder | src/OpenApiSpecBuilder.ts | <reponame>brad-jones/openapi-spec-builder<filename>src/OpenApiSpecBuilder.ts<gh_stars>1-10
import deepEqual = require('deep-equal');
import * as swagger from 'swagger-tools';
import IHeader from './v2/Strict/IHeader';
import IParameter from './v2/Strict/IParameter';
import IReference from './v2/Strict/IReference';
im... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/ILink.ts | <reponame>brad-jones/openapi-spec-builder
import IServer from './IServer';
import ISpecificationExtension from './ISpecificationExtension';
/**
* The Link object represents a possible design-time link for a response.
*
* The presence of a link does not guarantee the caller's ability to
* successfully invoke it, ra... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IOAuthFlow.ts | <reponame>brad-jones/openapi-spec-builder
import ISpecificationExtension from './ISpecificationExtension';
/**
* Configuration details for a supported OAuth Flow
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#oauth-flow-object
*/
export default interface IOAuthFlow extends ISpe... |
brad-jones/openapi-spec-builder | src/v2/Strict/IResponses.ts | import IReference from './IReference';
import IResponse from './IResponse';
interface IResponses
{
/**
* The documentation of responses other than the ones declared for
* specific HTTP response codes.
*
* It can be used to cover undeclared responses.
*
* Reference Object can be used t... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IHeader.ts | import { SerializationStyle } from '../TypeDefs';
import ISchema from './ISchema';
import IExample from './IExample';
import IReference from './IReference';
import IMediaType from './IMediaType';
import ISpecificationExtension from './ISpecificationExtension';
/**
* The Header Object follows the structure of the Para... |
brad-jones/openapi-spec-builder | src/v2/Modified/ISharedSchema.ts | <filename>src/v2/Modified/ISharedSchema.ts
import { FormatType, Type } from '../TypeDefs';
interface ISharedSchema
{
/**
* The type that the schema is describing.
*
* > NOTE: In some cases the type can be omitted and it will be inferred
* based on other properties values. However good p... |
brad-jones/openapi-spec-builder | src/v2/Strict/IHeader.ts | import IItems from './IItems';
/**
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#header-object
*/
interface IHeader extends IItems
{
/**
* A short description of the header.
*/
description?: string;
}
export default IHeader;
|
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IExample.ts | <reponame>brad-jones/openapi-spec-builder<filename>src/v3.0.0/Strict/IExample.ts
import ISpecificationExtension from './ISpecificationExtension';
/**
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#example-object
*/
export default interface IExample extends ISpecificationExtension
{... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/IResponses.ts | import IResponse from './IResponse';
import IReference from './IReference';
import ISpecificationExtension from './ISpecificationExtension';
/**
* A container for the expected responses of an operation.
* The container maps a HTTP response code to the expected response.
*
* The documentation is not necessarily exp... |
brad-jones/openapi-spec-builder | src/v2/Strict/ISecurityRequirment.ts | <gh_stars>1-10
/**
* Lists the required security schemes to execute this operation.
*
* The object can have multiple security schemes declared in it which are
* all required (that is, there is a logical AND between the schemes).
*
* The name used for each property MUST correspond to a
* security scheme declared ... |
brad-jones/openapi-spec-builder | src/v2/Modified/IInfo.ts | <reponame>brad-jones/openapi-spec-builder
import IContact from "./IContact";
import ILicense from "./ILicense";
/**
* The object provides metadata about the API.
*
* The metadata can be used by the clients if needed,
* and can be presented in the Swagger-UI for convenience.
*
* @see https://github.com/OAI/OpenAP... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/ILicense.ts | <filename>src/v3.0.0/Strict/ILicense.ts
import ISpecificationExtension from './ISpecificationExtension';
/**
* License information for the exposed API.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#license-object
*/
export default interface ILicense extends ISpecificationExten... |
brad-jones/openapi-spec-builder | src/v3.0.0/Strict/ISpecificationExtension.ts | <filename>src/v3.0.0/Strict/ISpecificationExtension.ts<gh_stars>1-10
/**
* Specification Extensions
*
* While the OpenAPI Specification tries to accommodate most use cases,
* additional data can be added to extend the specification at certain points.
* The extensions properties are implemented as patterned fields ... |
brad-jones/openapi-spec-builder | src/v2/Modified/IContact.ts | <reponame>brad-jones/openapi-spec-builder
/**
* Contact information for the exposed API.
*
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#contactObject
*/
interface IContact
{
/**
* The identifying name of the contact person/organization.
*/
name?: string;
/**... |
brad-jones/openapi-spec-builder | src/v2/Strict/ITag.ts | <reponame>brad-jones/openapi-spec-builder<filename>src/v2/Strict/ITag.ts
import IExternalDocs from "./IExternalDocs";
/**
* Allows adding meta data to a single tag that is used by the Operation Object.
* It is not mandatory to have a Tag Object per tag used there.
*
* @see https://github.com/OAI/OpenAPI-Specificat... |
brad-jones/openapi-spec-builder | src/v2/Modified/IEndpoint.ts | import IExternalDocs from './IExternalDocs';
import IParameter from './IParameter';
import IResponse from './IResponse';
import ISecurityRequirment from './ISecurityRequirment';
import { Schemes } from '../TypeDefs';
/**
* Describes a single API operation on a path.
*
* @see https://github.com/OAI/OpenAPI-Specifica... |
brad-jones/openapi-spec-builder | src/v2/Strict/ISecuritySchema.ts | <reponame>brad-jones/openapi-spec-builder
/**
* Allows the definition of a security scheme that can be used by the operations.
*
* Supported schemes are basic authentication, an API key (either as a header
* or as a query parameter) and OAuth2's common flows (implicit, password,
* application and access code).
*
... |
brad-jones/openapi-spec-builder | src/v3.0.0/TypeDefs.ts | <gh_stars>1-10
/**
* There are four possible parameter locations specified by the in field:
*
* - __path:__ Used together with Path Templating, where the parameter value
* is actually part of the operation's URL. This does not include the host
* or base path of the API. For example, in `/items/{itemId}`,... |
NTejaswi/May-Task2 | src/app/rest-observable/rest-observable.component.ts | import { Component, OnInit } from '@angular/core';
import { RestObservableService } from './rest-observable.service';
import { Observable } from 'rxjs/Observable';
@Component({
selector: 'app-rest-observable',
templateUrl: './rest-observable.component.html',
styles: ['li { list-style-type: none; padding: 20px 0;... |
NTejaswi/May-Task2 | src/app/rest-observable/rest-observable.service.ts | import { Injectable } from '@angular/core';
import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpResponse, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/throw';
import 'rxjs/add/operator/catch';
@Injectable()
export class RestObserv... |
NekoMoYi/dev2dev | windi.config.ts | <reponame>NekoMoYi/dev2dev
import { defineConfig } from 'windicss/helpers'
export default defineConfig({
theme: {
fontFamily: {
sans: ['Noto Sans SC'],
serif: ['ui-serif', 'Georgia'],
mono: ["'Cascadia Code'"],
display: ["'Cascadia Code'"],
body: ["'Cascadia Code'"]
}
}
})
|
NekoMoYi/dev2dev | src/shims-dataset.d.ts | <reponame>NekoMoYi/dev2dev
declare module 'virtual:dev2dev-dataset' {
export interface ISite {
host: string
name: string
owner: string
logo: string
}
const sites: ISite[]
export default sites
}
|
NekoMoYi/dev2dev | src/utils/async.ts | <gh_stars>1-10
export function wait(ms: number) {
return new Promise<void>((resolve) => setTimeout(resolve, ms))
}
export function useAsync(fn: () => Promise<any>) {
fn()
}
|
NekoMoYi/dev2dev | plugins/dataset.ts | import fs from 'fs-extra'
import path from 'path'
import yaml from 'yaml'
import Ajv from 'ajv'
const ROOT = path.resolve(__dirname, '..')
const ajv = new Ajv()
const validator = ajv.compile(
fs.readJSONSync(path.join(ROOT, 'schema', 'site.json'))
)
const DATA_DIR = path.join(ROOT, 'data')
const sites = []
const... |
NekoMoYi/dev2dev | src/utils/sites.ts | <filename>src/utils/sites.ts
import sites, { ISite } from 'virtual:dev2dev-dataset'
const siteMap = new Map<string, ISite>(sites.map((x) => [x.host, x]))
function strip(url: string) {
const i = url.indexOf('.')
if (i === -1) return ''
return url.substr(i + 1)
}
function match(url: string) {
let result: ISite... |
vibexie/react-native-platform | src/ManufacturerBackgroundManager.ts | import { NativeModules } from 'react-native'
const { RNPlatform } = NativeModules
import { isHuawei, isXiaomi, isVIVO, isOPPO, isMeizu } from './DeviceUtil'
export function isBackgroundSettingSupported() {
return isHuawei() || isXiaomi() || isVIVO() || isOPPO() || isMeizu()
}
export function openBackgroundSettings(... |
aslambaba/Developer-Community | src/pages/using-typescript.tsx | import React from 'react';
export default function TSX(){
return(
<h1>TSX Page</h1>
)
} |
aisensiy/update-postman-schema-action | src/main.ts | import * as core from '@actions/core'
import * as fs from 'fs'
import * as util from 'util'
import {inspect} from 'util'
import fetch from 'node-fetch'
async function run() {
const inputs = {
token: core.getInput('postman-key'),
apiId: core.getInput('postman-api-id'),
apiVersionId: core.getInput('postman... |
h-o-t/entente | src/nodes/VariableDeclaration.ts | <reponame>h-o-t/entente
import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { Expression } from "./Expression";
export class VariableDeclaration {
constructor(private _node: ts.VariableDeclaration) {}
/** The initializer (value) of the variable declaration. */
get initializ... |
h-o-t/entente | src/nodes/ClassMethod.ts | <filename>src/nodes/ClassMethod.ts
import { FunctionLikeDeclaration } from "./FunctionLikeDeclaration";
export class ClassMethod extends FunctionLikeDeclaration {}
|
h-o-t/entente | src/project.ts | import { extname } from "path";
import { CompilerOptions, Project } from "ts-morph";
/** Returns `true` if it appears to be a configuration file, versus a JavaScript
* or TypeScript file. Otherwise `false`. */
function isConfig(value: string): boolean {
return extname(value) === ".json";
}
/** Create a project tha... |
h-o-t/entente | src/nodes/Properties.ts | import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { TypeArray } from "./TypeArray";
export class Properties {
constructor(private _symbols: ts.Symbol[][]) {}
/** Assert that property exists in the object type. If true, returns the
* object properties. */
has(
expe... |
h-o-t/entente | src/nodes/Type.ts | <reponame>h-o-t/entente<gh_stars>10-100
import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { Properties } from "./Properties";
export class Type<T extends ts.ts.Type = ts.ts.Type> {
private _properties?: Properties;
private _types: ts.Type[];
constructor(private _type: ts.... |
h-o-t/entente | src/nodes/FunctionLikeDeclaration.ts | import * as ts from "ts-morph";
import { ParameterDeclarationArray } from "./ParameterDeclarationArray";
import { Type } from "./Type";
export class FunctionLikeDeclaration {
private _parameterDeclarations?: ParameterDeclarationArray;
constructor(private _node: ts.FunctionLikeDeclaration) {}
/** The parameters... |
h-o-t/entente | tests/fixtures/ts.ts | import { foo } from "./mod1";
// eslint-disable-next-line no-console
console.log(foo);
|
h-o-t/entente | tests/classes.ts | import { assert } from "chai";
import { test } from "./harness";
import { assertSourceFile, createProject } from "../src";
test({
name: "can assert classes in source file",
fn() {
const project = createProject("./tests/fixtures/exportClass.js");
const sourceFiles = project.getSourceFiles();
assertSour... |
h-o-t/entente | src/util.ts | <gh_stars>10-100
import { sep as DEFAULT_SEPARATOR } from "path";
/** Try to detect the path seperator from a set of paths. */
function determineSeperator(paths: string[]): string {
for (const path of paths) {
const match = /(\/|\\)/.exec(path);
if (match !== null) {
return match[0];
}
}
return... |
h-o-t/entente | src/nodes/ClassMember.ts | import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { ClassMethod } from "./ClassMethod";
import { ClassProperty } from "./ClassProperty";
export class ClassMember {
constructor(private _node: ts.ClassInstanceMemberTypes) {}
/** Asserts that the member is a method, not a prop... |
h-o-t/entente | tests/fixtures/exports.ts | <reponame>h-o-t/entente
/* eslint-disable */
const foo = () => {};
export default foo;
export function bar() {}
export const baz = 1;
export const qux = "qux";
export const quux = "quux";
export const quuux = "quuux";
|
h-o-t/entente | tests/assert.ts | import { assert } from "chai";
import { test } from "./harness";
import { assertSourceFile, createProject } from "../src";
test({
name: "can assert against a source file",
fn() {
const project = createProject("./tests/fixtures/exports.ts");
const sourceFiles = project.getSourceFiles();
assert(assertSo... |
h-o-t/entente | src/index.ts | export * from "./assert";
export * from "./harness";
export * from "./project";
|
h-o-t/entente | src/nodes/Expression.ts | <reponame>h-o-t/entente<gh_stars>10-100
import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { FunctionLikeDeclaration } from "./FunctionLikeDeclaration";
export class Expression {
constructor(private _node: ts.Expression) {}
/** Assert the expression is function like, and ret... |
h-o-t/entente | tests/imports.ts | import { assert } from "chai";
import { test } from "./harness";
import { assertSourceFile, createProject } from "../src";
test({
name: "can return import specifiers",
fn() {
const project = createProject("./tests/fixtures/imports.ts");
const sourceFile = project.getSourceFiles()[0];
assert.deepEqual(... |
h-o-t/entente | src/harness.ts | import { format } from "assertion-error-formatter";
import * as chalk from "chalk";
/* eslint-disable no-console */
export interface RunReturn {
/** An array of the results of each of the tests. */
tests: TestResult[];
/** The total number of tests executed. */
count: number;
/** The total number of tests... |
h-o-t/entente | src/interfaces.d.ts | <gh_stars>10-100
// there are no `@types` for this module, so providing here
declare module "assertion-error-formatter" {
export function format(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
error: any,
options?: {
colorFns?: {
diffAdded?: (str: string) => string;
d... |
h-o-t/entente | src/nodes/SourceFile.ts | <gh_stars>10-100
import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { ClassDeclarations } from "./ClassDeclarations";
import { Exports } from "./Exports";
import { Imports } from "./Imports";
export class SourceFile {
constructor(private _node: ts.SourceFile) {}
/** The clas... |
h-o-t/entente | src/nodes/TypeArray.ts | import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
export class TypeArray {
constructor(private _types: ts.Type[]) {}
/** Assert that there are at least a number of types in the type array. */
atLeast(expected: number, msg?: string): this {
const actual = this._types.length;
... |
h-o-t/entente | src/nodes/Imports.ts | <reponame>h-o-t/entente<gh_stars>10-100
import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { ImportDeclaration } from "./ImportDeclaration";
export class Imports {
constructor(private _declarations: ts.ImportDeclaration[]) {}
get declarations(): ImportDeclaration[] {
ret... |
h-o-t/entente | tests/index.ts | <reponame>h-o-t/entente
import { run } from "./harness";
import "./project";
import "./assert";
import "./imports";
import "./classes";
(async () => {
const fails = await run();
process.exit(fails);
})();
|
h-o-t/entente | tests/fixtures/mod3.ts | export const foo = "foo";
export const bar = 1;
export const baz = (): void => {
// eslint-disable-next-line no-console
console.log("baz");
};
export function qat(): boolean {
return true;
}
|
h-o-t/entente | src/nodes/ExportedDeclaration.ts | <filename>src/nodes/ExportedDeclaration.ts
import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { FunctionLikeDeclaration } from "./FunctionLikeDeclaration";
import { VariableDeclaration } from "./VariableDeclaration";
export class ExportedDeclaration<
T extends ts.ExportedDeclar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.