repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
taylorhutchison/statewarden
tests/setup/ITestState.ts
<reponame>taylorhutchison/statewarden<filename>tests/setup/ITestState.ts<gh_stars>0 export interface ITestState { name: string; num: number; }
yahelnachum/graphql-query-generator
src/provide-variables.ts
import { Kind, GraphQLNamedType, TypeNode, GraphQLSchema, GraphQLInputObjectType } from 'graphql' import { Configuration, considerArgument, InternalConfiguration } from './generate-query' type Variables = { [varName: string]: any } export type ProviderFunction = ( variables: Variables, argType?: G...
maximiliankaske/react-native-search-bar
src/contexts/stickybar.ts
<filename>src/contexts/stickybar.ts import React from 'react'; import type Animated from 'react-native-reanimated'; export type StickyBarContextType = { focus: Animated.SharedValue<boolean>; close: Animated.SharedValue<boolean>; }; // @ts-ignore export const StickyBarContext = React.createContext<StickyBarContext...
maximiliankaske/react-native-search-bar
src/components/stickybar/index.ts
<filename>src/components/stickybar/index.ts export { default as StickyBar } from './StickyBar';
maximiliankaske/react-native-search-bar
src/components/searchbar/SearchBar.tsx
import React from 'react'; import { View, TextInput, Text, TouchableOpacity } from 'react-native'; import Animated, { useAnimatedStyle, useSharedValue, withDelay, withTiming, } from 'react-native-reanimated'; import type { SearchBarProps, TextInputEvent } from './types'; import { styles } from './styles'; impor...
maximiliankaske/react-native-search-bar
src/hooks/useStickyBar.tsx
<gh_stars>0 import React from 'react'; import { StickyBarContext } from '../contexts/stickybar'; export const useStickyBar = () => { const context = React.useContext(StickyBarContext); if (!context) { throw new Error( 'Compound component has do live inside the StickyBarProvider' ); } return conte...
maximiliankaske/react-native-search-bar
src/hooks/useSearchBar.tsx
import React from 'react'; import { SearchBarContext } from '../contexts/searchbar'; export const useSearchBar = () => { const context = React.useContext(SearchBarContext); if (!context) { throw new Error( 'Compound component has do live inside the SearchBarProvider' ); } return context; };
maximiliankaske/react-native-search-bar
src/hooks/useComponentLayout.ts
import { useState, useCallback } from 'react'; import type { LayoutChangeEvent, LayoutRectangle } from 'react-native'; const useComponentLayout = () => { const [layout, setLayout] = useState<LayoutRectangle>({ x: 0, y: 0, width: 0, height: 0, }); const onLayout = useCallback((event: LayoutChange...
maximiliankaske/react-native-search-bar
src/index.tsx
<gh_stars>0 import * as React from 'react'; import { Button, StyleSheet } from 'react-native'; import Animated, { useAnimatedStyle, useSharedValue, withSpring, } from 'react-native-reanimated'; const AnimatedComponent = () => { const width = useSharedValue(0); const animatedStyle = useAnimatedStyle(() => ({ ...
maximiliankaske/react-native-search-bar
src/hooks/index.ts
<gh_stars>0 export { useComponentLayout } from './useComponentLayout'; export { useStickyBar } from './useStickyBar'; export { useSearchBar } from './useSearchBar';
maximiliankaske/react-native-search-bar
src/components/searchbarWrapper/types.ts
export interface SearchBarWrapperProps { children: React.ReactNode; }
maximiliankaske/react-native-search-bar
src/components/stickybar/AnimatedButton.tsx
import React from 'react'; import { TouchableOpacity } from 'react-native-gesture-handler'; import Animated, { useAnimatedStyle, withSpring, withTiming, } from 'react-native-reanimated'; import type { AnimatedButtonProps } from './types'; const AnimatedButton = ({ close, children, ...props }: AnimatedButtonProps...
maximiliankaske/react-native-search-bar
src/components/stickybar/styles.ts
<filename>src/components/stickybar/styles.ts<gh_stars>0 import { StyleSheet } from 'react-native'; export const styles = StyleSheet.create({ container: { width: '100%', position: 'absolute', flexDirection: 'row', justifyContent: 'space-evenly', alignItems: 'center', backgroundColor: 'black', ...
maximiliankaske/react-native-search-bar
src/components/stickybar/StickyBar.tsx
<filename>src/components/stickybar/StickyBar.tsx import React from 'react'; import { Keyboard, KeyboardEventListener, Platform, View } from 'react-native'; import Animated, { useAnimatedStyle, useSharedValue, withTiming, } from 'react-native-reanimated'; import { StickyBarProvider } from '../../contexts'; import ...
maximiliankaske/react-native-search-bar
src/components/stickybar/StickyBarIcon.tsx
<filename>src/components/stickybar/StickyBarIcon.tsx import React from 'react'; import type { StickyBarIconProps } from './types'; import { useStickyBar } from '../../hooks'; import Animated, { useAnimatedStyle, withTiming, } from 'react-native-reanimated'; const StickyBarIcon = ({ children, ...props }: StickyBarI...
maximiliankaske/react-native-search-bar
src/components/stickybar/types.ts
import type { StyleProp, TextInput, TouchableOpacityProps, ViewProps, ViewStyle, } from 'react-native'; import type Animated from 'react-native-reanimated'; export interface StickyBarProps { inputRef: React.Ref<TextInput>; children: React.ReactNode; containerStyle?: StyleProp<ViewStyle>; closeIcon?: R...
maximiliankaske/react-native-search-bar
src/components/searchbar/types.ts
<filename>src/components/searchbar/types.ts import type { NativeSyntheticEvent, StyleProp, TextInput, TextInputFocusEventData, TextInputProps, TextStyle, ViewProps, } from 'react-native'; export interface SearchBarProps extends TextInputProps { ref: React.Ref<TextInput>; searchIcon: React.ReactNode; ...
maximiliankaske/react-native-search-bar
src/components/searchbarWrapper/SearchBarWrapper.tsx
<filename>src/components/searchbarWrapper/SearchBarWrapper.tsx import React from 'react'; import { useSharedValue } from 'react-native-reanimated'; import { SearchBarProvider } from '../../contexts'; import type { SearchBarWrapperProps } from './types'; const SearchBarWrapper = ({ children }: SearchBarWrapperProps) =>...
maximiliankaske/react-native-search-bar
src/contexts/searchbar.ts
<gh_stars>0 import React from 'react'; import type Animated from 'react-native-reanimated'; export type SearchBarContextType = { focus: Animated.SharedValue<boolean>; empty: Animated.SharedValue<boolean>; text: string; setText: React.Dispatch<React.SetStateAction<string>>; }; // @ts-ignore export const Search...
maximiliankaske/react-native-search-bar
src/components/searchbar/styles.ts
import { StyleSheet } from 'react-native'; export const styles = StyleSheet.create({ container: { padding: 16, backgroundColor: 'black', flexDirection: 'row', }, inputContainer: { flex: 1, flexDirection: 'row', alignItems: 'center', backgroundColor: 'lightgrey', padding: 8, bo...
maximiliankaske/react-native-search-bar
src/components/searchbarWrapper/index.ts
<filename>src/components/searchbarWrapper/index.ts<gh_stars>0 export { default as SearchBarWrapper } from './SearchBarWrapper';
maximiliankaske/react-native-search-bar
example/src/App.tsx
<filename>example/src/App.tsx import * as React from 'react'; import { StyleSheet } from 'react-native'; import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context'; import { StatusBar } from 'expo-status-bar'; import Home from './screens/Home'; export default function App() { return ( <SafeA...
maximiliankaske/react-native-search-bar
example/src/screens/Home.tsx
<gh_stars>0 import * as React from 'react'; import { StyleSheet, KeyboardAvoidingView, Text, FlatList, View, Platform, } from 'react-native'; import { SearchBar, StickyBar } from 'react-native-search-bar'; import { Feather } from '@expo/vector-icons'; import type { TextInput } from 'react-native'; type Ite...
maximiliankaske/react-native-search-bar
src/contexts/index.ts
export { StickyBarProvider, StickyBarContext } from './stickybar'; export { SearchBarProvider, SearchBarContext } from './searchbar';
maximiliankaske/react-native-search-bar
src/components/searchbar/constants.ts
<reponame>maximiliankaske/react-native-search-bar export const DEFAULT_DURATION = 300;
pascaliske/bsproxy
typings/index.d.ts
/** * Directly export the proxy server. */ export { ProxyServer } from './lib/proxyserver';
pascaliske/bsproxy
src/cli.ts
<gh_stars>0 #!/usr/bin/env node import * as debug from 'debug' import chalk from 'chalk' import { parse } from 'url' import { ProxyServer } from './lib/proxyserver' // tslint:disable-next-line const { name, version } = require('../package.json') // enable logging debug.enable(name) const log = debug(name) const url...
pascaliske/bsproxy
typings/lib/proxyserver.d.ts
<filename>typings/lib/proxyserver.d.ts import { BrowserSyncInstance, Options } from 'browser-sync'; export declare class ProxyServer { private options; private instance; /** * Initializes the ProxyServer. * * @param {Options} options */ constructor(options?: Options); /** * ...
pascaliske/bsproxy
src/lib/proxyserver.ts
import { BrowserSyncInstance, Options, create } from 'browser-sync' export class ProxyServer { private options: Options private instance: BrowserSyncInstance /** * Initializes the ProxyServer. * * @param {Options} options */ public constructor(options?: Options) { const de...
mxttwoods/blog
src/pages/404.tsx
/* eslint-disable react/no-unescaped-entities */ import * as React from 'react'; import { graphql } from 'gatsby'; import PropTypes from 'prop-types'; // import components import Layout from '../components/layout'; import SEO from '../components/seo'; /** * ErrorIndex * * @param { * } { data, location } * @retur...
mxttwoods/blog
src/components/layout.tsx
<reponame>mxttwoods/blog import * as React from 'react'; import { Link } from 'gatsby'; import PropTypes from 'prop-types'; /** * @param { * } { location, title, children } * @return { * } */ const Layout = ({ location, title, children }) => { // eslint-disable-next-line no-undef const rootPath = `${__PATH_PREF...
Allysonubius/nlw-together
letmeask/src/App.tsx
<reponame>Allysonubius/nlw-together import { BrowserRouter, Route , Switch} from "react-router-dom"; import { AuthContextProvider } from './contexts/Auth.context'; import { AdminRoomComponent } from "./pages/AdminRoom.component"; import { HomeComponent } from "./pages/Home.component"; import { NewRoomComponent } from ...
Allysonubius/nlw-together
letmeask/src/hooks/useRoom.hooks.ts
import { useAuthHooks } from './useAuth.hooks'; import { useEffect, useState } from "react"; import { database } from "../services/firebase.service"; type FirebaseQuestions = Record<string,{ author:{ name:string; avatar:string; }, content:string; isAnswered: boolean; isHignLighted:b...
Allysonubius/nlw-together
letmeask/src/componentes/RoomCode.components.tsx
import coyImg from '../assets/images/copy.svg'; import '../styles/room-code.style.scss'; type RoomCodeProps ={ code:string; } export function RoomCodeComponents(props:RoomCodeProps){ function copyRoomToClipboard(){ navigator.clipboard.writeText(props.code); } return( <button classNam...
Allysonubius/nlw-together
letmeask/src/pages/NewRoom.component.tsx
// Images import import illustrationImg from '../assets/images/illustration.svg'; import logoImg from '../assets/images/logo.svg'; // wehpack (snowpack, vice, ...); import '../styles/auth.style.scss'; // Componentes import { ButtonComponents } from '../componentes/Button.components'; import { Link, useHistory } from '...
valentine-morozov/angulartics2
src/lib/providers/mautic/mautic.ts
import { Injectable } from '@angular/core'; import { Angulartics2 } from 'angulartics2'; declare var mt: Function; @Injectable({ providedIn: 'root' }) export class Angulartics2Mautic { constructor( protected angulartics2: Angulartics2, ) { } startTracking() { this.angulartics2.pageTrack ...
ASolomatin/big-bit-mask
src/BigBitMask.ts
export class BigBitMask { private static readonly alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; private static readonly reverse: { [key: string]: number } = { "A": 0x00, "B": 0x01, "C": 0x02, "D": 0x03, "E": 0x04, "F": 0x05, "G": 0x06, "H": 0x07, "I": 0x08, "J": 0x09, "K"...
ASolomatin/big-bit-mask
src/BigBitMask.spec.ts
import { BigBitMask } from "BigBitMask"; import { expect, should } from "chai"; describe("BigBitMask tests", () => { it("ctor", () => { let bitmask: BigBitMask; should().throw(() => bitmask = new BigBitMask(125 as any)); should().not.throw(() => bitmask = new BigBitMask()); should()...
ASolomatin/big-bit-mask
src/index.ts
<reponame>ASolomatin/big-bit-mask export * from "BigBitMask";
vladfr/gosaas
client/src/auth/interceptor.ts
<filename>client/src/auth/interceptor.ts /* eslint-disable */ import { UnaryInterceptor, Request } from "grpc-web" /** * @object * @implements {UnaryInterceptor} */ export class AuthUnaryInterceptor implements UnaryInterceptor<any, any> { token?: string | undefined constructor(token: string | undefined)...
vladfr/gosaas
client/src/auth/authGuard.ts
<reponame>vladfr/gosaas<filename>client/src/auth/authGuard.ts import { getInstance } from './auth' import { NavigationGuard } from 'vue-router' export const authGuard: NavigationGuard = (to, from, next) => { const authService = getInstance() const fn = () => { // Unwatch loading /*eslint n...
vladfr/gosaas
client/src/auth/VueAuth.ts
import { Vue, Component } from 'vue-property-decorator' import createAuth0Client, { PopupLoginOptions, Auth0Client, RedirectLoginOptions, GetIdTokenClaimsOptions, GetTokenSilentlyOptions, GetTokenWithPopupOptions, LogoutOptions } from '@auth0/auth0-spa-js' import { User } from './User' export type Auth0Options = { d...
vladfr/gosaas
client/src/proto/helloworld/helloworld_pb.d.ts
import * as jspb from 'google-protobuf' export class HelloRequest extends jspb.Message { getName(): string; setName(value: string): HelloRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): HelloRequest.AsObject; static toObject(includeInstance: boolean, msg: HelloRequest): HelloRe...
vladfr/gosaas
client/src/shims-vue.d.ts
declare module '*.vue' { import Vue from 'vue' export default Vue } //auth0 import { VueAuth } from './auth/VueAuth' declare module 'vue/types/vue' { interface Vue { $auth: VueAuth } }
vladfr/gosaas
client/src/auth/index.ts
<filename>client/src/auth/index.ts import { authGuard } from './authGuard' export * from './auth' export { authGuard } from './authGuard' export { AuthUnaryInterceptor } from './interceptor'
tention/react-native-barcode-builder
src/ErrorBoundary.tsx
import React from 'react'; class ErrorBoundary extends React.Component< { children: any }, { hasError: boolean } > { constructor(props) { super(props); this.state = { hasError: false }; } static getDerivedStateFromError(error) { return { hasError: true }; } componentDidCatch(error: any, err...
tention/react-native-barcode-builder
dist/ErrorBoundary.d.ts
import React from 'react'; declare class ErrorBoundary extends React.Component<{ children: any; }, { hasError: boolean; }> { constructor(props: any); static getDerivedStateFromError(error: any): { hasError: boolean; }; componentDidCatch(error: any, errorInfo: any): void; r...
holycrepe/gulp-holycrepe
lib/tools/utilities.colors.d.ts
import {ChalkChain, ChalkStyle} from "chalk"; // export type ChalkStyleDefinitions1 = {[style: string]: ChalkChain}; // export interface ChalkStyleMappingExtended1 { // get(style:string):ChalkChain; // } // interface ChalkStylesX<T extends ChalkChain> { // [style: string]: T; // } // interface ChalkStylesY { //...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/streamingReceiver.d.ts
<filename>iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/streamingReceiver.d.ts import { ReceiveOptions, OnMessage, OnError } from "."; import { EventHubReceiver, ReceiverRuntimeInfo } from "./eventHubReceiver"; import { ConnectionContext } from "./connectionContext"; export declare cla...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/retry.d.ts
/** * It will attempt to linearly retry an operation specified number of times with a specified * delay in between each retry. The retries will only happen if the error is retryable. * * @param {Promise<T>} operation The operation that needs to be retried. * @param {number} [times] Number of times the ...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/auth/aad.d.ts
<reponame>zentrillion/azure-iot-samples-node<filename>iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/auth/aad.d.ts import { ApplicationTokenCredentials, DeviceTokenCredentials, UserTokenCredentials, MSITokenCredentials } from "ms-rest-azure"; import { TokenInfo, TokenProvider } from "./...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-common/lib/authentication_provider.d.ts
/// <reference types="node" /> import { TransportConfig } from './authorization'; /** * Designate the type of authentication used by an `AuthenticationProvider`. */ export declare enum AuthenticationType { /** * X509 Certificate based authentication. */ X509 = 0, /** * Token-based authentic...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/cbs.d.ts
<gh_stars>0 import { TokenInfo } from "./auth/token"; import { ConnectionContext } from "./connectionContext"; /** * @class CbsClient * Describes the EventHub Cbs client that talks to the $cbs endopint over AMQP connection. */ export declare class CbsClient { /** * @property {string} endpoint CBS endpoint -...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/container.d.ts
<reponame>zentrillion/azure-iot-samples-node /// <reference types="node" /> import { sasl } from "./sasl"; import { generate_uuid, string_to_uuid, uuid_to_string } from "./util"; import { ws } from "./ws"; import { filter } from "./filter"; import { EventEmitter } from "events"; import { Connection, ConnectionOptions ...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/link.d.ts
/// <reference types="node" /> import { EventEmitter } from "events"; import { frames } from "./frames"; import { EndpointState } from "./endpoint"; import { Delivery, Session } from "./session"; import { EventContext, Message, TerminusOptions, Connection, LinkOptions, Source, AmqpError, Dictionary } from "./connectio...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-device/lib/blob_upload/blob_upload_client.d.ts
<filename>iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-device/lib/blob_upload/blob_upload_client.d.ts /// <reference types="node" /> import { Stream } from 'stream'; import { AuthenticationProvider } from 'azure-iot-common'; import { BlobUploadResult } from './blob_upload_result'; /** * @private */ exp...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/iothub/iotHubConnectionConfig.d.ts
import { ConnectionConfig } from "../connectionConfig"; export interface IotHubConnectionConfig { /** * @property {string} endpoint - The iothub endpoint `"<iothub-namespace>.azure-devices.net"`. */ hostName: string; /** * @property {string} host - The host `"<yournamespace>"`. */ ho...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-device/lib/client.d.ts
/// <reference types="node" /> import { Stream } from 'stream'; import { EventEmitter } from 'events'; import { results, Message, X509, AuthenticationProvider } from 'azure-iot-common'; import { SharedAccessSignature as CommonSharedAccessSignature } from 'azure-iot-common'; import { RetryPolicy } from 'azure-iot-common...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-mqtt-base/index.d.ts
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. export { MqttBase } from './lib/mqtt_base'; export { translateError } from './lib/mqtt_translate_error';
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-common/lib/dictionary.d.ts
/*! Copyright (c) Microsoft. All rights reserved. *! Licensed under the MIT license. See LICENSE file in the project root for full license information. */ export declare function createDictionary(source: string, separator: string): createDictionary.Dictionary<string>; export declare namespace createDictionary { /...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-common/lib/shared_access_signature.d.ts
/// <reference types="node" /> /*! Copyright (c) Microsoft. All rights reserved. *! Licensed under the MIT license. See LICENSE file in the project root for full license information. */ import * as authorization from './authorization'; /** * Shared access signature tokens are used to authenticate the connection when...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/util/constants.d.ts
export declare const partitionKey = "x-opt-partition-key"; export declare const sequenceNumber = "x-opt-sequence-number"; export declare const enqueuedTime = "x-opt-enqueued-time"; export declare const offset = "x-opt-offset"; export declare const enqueuedTimeAnnotation: string; export declare const offsetAnnotation: s...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/batchingReceiver.d.ts
<reponame>zentrillion/azure-iot-samples-node import { ReceiveOptions, EventData } from "."; import { EventHubReceiver } from "./eventHubReceiver"; import { ConnectionContext } from "./connectionContext"; /** * Describes the batching receiver where the user can receive a specified number of messages for a predefined ti...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/connectionContext.d.ts
import { ConnectionConfig } from "."; import { EventHubReceiver } from "./eventHubReceiver"; import { EventHubSender } from "./eventHubSender"; import { TokenProvider } from "./auth/token"; import { ManagementClient } from "./managementClient"; import { CbsClient } from "./cbs"; import { ClientOptions } from "./eventHu...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/connection.d.ts
<filename>iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/connection.d.ts /// <reference types="node" /> import { EndpointState } from "./endpoint"; import { Session, Delivery } from "./session"; import { Transport } from "./transport"; import { Sender, Receiver, link } from "./link"; import { Socket }...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-device/lib/connection_string.d.ts
<filename>iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-device/lib/connection_string.d.ts import { ConnectionString } from 'azure-iot-common'; /** * Parses a connection string from a string. * See {@link https://blogs.msdn.microsoft.com/iotdev/2017/05/09/understand-different-connection-strings-in-azure-...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/sasl.d.ts
<filename>iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/sasl.d.ts /// <reference types="node" /> import { Connection } from "./connection"; import { Transport } from "./transport"; import { Socket } from "net"; import { frames } from "./frames"; interface Mechanisms { [x: string]: Function; } dec...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/rpc.d.ts
import { ReceiverOptions, SenderOptions, OnAmqpEvent, Connection } from "./rhea-promise"; import { Message, ConnectionConfig } from "."; export interface RequestResponseLink { sender: any; receiver: any; session: any; } export interface ReceiverLink { receiver: any; session: any; } export interface ...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-device/lib/device_method/device_method_request.d.ts
<gh_stars>1-10 /** * Represents the data passed in from the service to the device when a device method is called from the cloud. * An instance of this class is passed to the callback registered via {@link azure-iot-device.Client.onDeviceMethod}. */ export declare class DeviceMethodRequest { /** * The reques...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/eventData.d.ts
import { Message, MessageProperties, MessageHeader, EventHubMessageAnnotations, Dictionary } from "./rhea-promise"; /** * Describes the structure of an event to be sent or received from the EventHub. * @interface EventData */ export interface EventData { /** * @property {MessageHeader} [header] - The messag...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-common/lib/retry_operation.d.ts
/// <reference types="node" /> import { RetryPolicy } from './retry_policy'; /** * Implements the necessary logic to retry operations such as connecting, receiving C2D messages, sending telemetry, twin updates, etc. */ export declare class RetryOperation { private _policy; private _retryCount; private _cu...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/iothub/iotSas.d.ts
<filename>iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/iothub/iotSas.d.ts import { SasTokenProvider } from "../auth/sas"; import { TokenInfo } from ".."; /** * @class IotSasTokenProvider * Defines the SasTokenProvider for IotHub. */ export declare class IotSasTokenProvider extends ...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/endpoint.d.ts
/// <reference types="node" /> export declare interface EndpointState { local_open: boolean; remote_open: boolean; open_requests: number; close_requests: number; initialised: boolean; init(): void; open(): boolean; close(): boolean; disconnected(): void; remote_opened(): boolean; remote_closed():...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/eventHubReceiver.d.ts
import * as rheaPromise from "./rhea-promise"; import { ReceiveOptions, EventData, EventHubsError } from "."; import { ConnectionContext } from "./connectionContext"; import { ClientEntity } from "./clientEntity"; /** * Represents the approximate receiver runtime information for a logical partition of an Event Hub. *...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/eventHubSender.d.ts
import * as rheaPromise from "./rhea-promise"; import { EventData } from "./eventData"; import { ConnectionContext } from "./connectionContext"; import { ClientEntity } from "./clientEntity"; /** * Instantiates a new sender from the AMQP `Sender`. Used by `EventHubClient`. * * @param {any} session - The amqp session...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/auth/token.d.ts
/** * Describes the type of supported tokens. * @readonly * @enum TokenType */ export declare enum TokenType { /** * The "jwt" token type. Used with AADTokenProvider. */ CbsTokenTypeJwt = "jwt", /** * The sas token type. Used with SasTokenProvider. */ CbsTokenTypeSas = "servicebu...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-common/lib/connection_string.d.ts
<gh_stars>1-10 /*! Copyright (c) Microsoft. All rights reserved. *! Licensed under the MIT license. See LICENSE file in the project root for full license information. */ /** * Describes the parameters that enable a device or cloud application to connect to an Azure IoT hub. */ export declare class ConnectionString ...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/clientEntity.d.ts
<reponame>zentrillion/azure-iot-samples-node<gh_stars>0 /// <reference types="node" /> import { ConnectionContext } from "./connectionContext"; export interface ClientEntityOptions { /** * @property {string} [name] The unique name for the entity. If not provided then a guid will be * assigned. */ ...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/util/utils.d.ts
/// <reference types="async-lock" /> import * as AsyncLock from "async-lock"; export interface AsyncLockOptions { /** * @property {number} [timeout] The max timeout. Default is: 0 (never timeout). */ timeout?: number; /** * @property {number} [maxPending] Maximum pending tasks. Default is: 10...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/rhea-promise/index.d.ts
import * as rhea from "rhea"; export { Delivery, Message, OnAmqpEvent, MessageProperties, MessageHeader, EventContext, Connection, ReceiverOptions, SenderOptions, ConnectionOptions, AmqpError, Dictionary } from "rhea"; /** * Establishes an amqp connection. * @param {ConnectionOptions} [options] Options to be provided...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/simulated-device/node_modules/azure-iot-device/lib/blob_upload/index.d.ts
<gh_stars>1-10 export { BlobUploadClient } from './blob_upload_client'; export { BlobSasError, BlobUploadNotificationError } from './blob_upload_errors';
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/iothub/iothubClient.d.ts
import { ConnectionContext, ConnectionContextOptions } from "../connectionContext"; export interface ParsedRedirectError { endpoint: string; entityPath: string; } export interface EHConfig extends ParsedRedirectError { sharedAccessKey: string; sharedAccessKeyName: string; } export declare class IotHubCl...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/managementClient.d.ts
<gh_stars>0 import { ConnectionContext } from "./connectionContext"; import { ClientEntity } from "./clientEntity"; export interface EventHubRuntimeInformation { /** * @property {string} path - The name of the event hub. */ path: string; /** * @property {Date} createdAt - The date and time th...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/errors.d.ts
/// <reference types="node" /> export declare interface ProtocolError extends Error { message: string; name: string; } export declare interface TypeError extends ProtocolError { message: string; name: string; } export declare interface ConnectionError extends Error { message: string; name: str...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/connectionConfig.d.ts
export interface ConnectionConfig { /** * @property {string} endpoint - The service bus endpoint "sb://<yournamespace>.servicebus.windows.net/". */ endpoint: string; /** * @property {string} host - The host "<yournamespace>.servicebus.windows.net". */ host: string; /** * @pr...
zentrillion/azure-iot-samples-node
iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/session.d.ts
<filename>iot-hub/Quickstarts/read-d2c-messages/node_modules/rhea/typings/session.d.ts /// <reference types="node" /> import { Connection, EventContext } from "./connection"; import { EndpointState } from "./endpoint"; import { EventEmitter } from "events"; import { link, Sender, Receiver } from "./link"; import { fra...
amjha/node-ts-bolier
src/index.ts
#!/usr/bin/env node const chalk = require("chalk"); const figlet = require("figlet"); const program = require("commander"); import * as prompts from "./prompts"; console.log(chalk.green(figlet.textSync("TSEO", { horizontalLayout: "full" }))); program .version("0.0.7") .description( "A minimalistic NodeJS base...
amjha/node-ts-bolier
src/inject.ts
<filename>src/inject.ts import { Ioptions, Idatabasetype } from "./interface"; const fse = require("fs-extra"); const chalk = require("chalk"); const fetch = require('node-fetch'); export const inject = (options: Ioptions) => { const projectDir = options.projectName.trim(); let dbTypeDriver: any; const ts...
amjha/node-ts-bolier
src/interface.ts
export interface Ioptions { projectName: string; projectAuthor?: string; porjectLicense?: string; databaseType?: string; } export interface Idatabasetype { mssql: string; mysql: string; sqlite: string; cockroachdb: string; postgres: string; oracle: string; mariadb: string; }
amjha/node-ts-bolier
src/prompts.ts
import { inject } from "./inject"; export const promptsFn = () => { const prompts = require("prompts"); const properties = [ { type: "text", name: "projectName", message: "Project name:", validate: (projectName: string) => projectName.match(/^[a-zA-Z0-9\s\-_]+$/) ? true...
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/web/src/components/Community/CommunityPage/RulesContainer/RulesContainer.tsx
<gh_stars>0 import React, { FC, useEffect } from 'react'; import Rule from '@rddt/common/types/Rule'; import { Collapse } from 'antd'; import { Empty } from 'antd'; const { Panel } = Collapse; interface RulesContainerProps { rules: Rule[]; } const RulesContainer: FC<RulesContainerProps> = ({ rules }) => { return ( ...
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/server/src/services/commentServices.ts
import Comment from '../comments/Comment'; import CommentType from '../types/Comment'; import { ErrorREST, Errors } from '../utilities/ErrorREST'; const createComment = async ( text: string, userId: string, sourceId: string, onModel: string, ): Promise<CommentType> => { try { const comment = new Comment({...
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/server/src/rules/rulesController.ts
<gh_stars>0 import { Request, Response, NextFunction } from 'express'; import { validationResult } from 'express-validator/check'; import isEmpty from '../utilities/isEmpty'; import passErrorToNext from '../utilities/passErrorToNext'; import { ErrorREST, Errors } from '../utilities/ErrorREST'; import { createRule, ...
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/web/src/components/LoginForm/LoginFormModal.tsx
<reponame>kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern<gh_stars>0 import React, { FC } from 'react'; import Modal from '../Modal/Modal'; import LoginForm from './LoginForm'; import { observer } from 'mobx-react-lite'; interface LoginFormModalProps { resetModalState: () => void; } const LoginFormModal: FC<LoginFo...
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/common/source/types/PopulatedBan.ts
import Ban from './Ban'; import User from './User'; import Rule from './Rule'; interface PopulatedBan extends Ban { user: User; bannedUser: User; rule: Rule | undefined; } export default PopulatedBan;
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/web/src/components/Navbar/ThemeSwitch/ThemeSwitch.test.tsx
import React from 'react'; import { render, fireEvent, cleanup, waitForElement, } from '@testing-library/react'; import ThemeSwitch from './ThemeSwitch'; describe('<ThemeSwitch />', () => { const toggleTheme = jest.fn(); const { container, getByTestId } = render( <ThemeSwitch toggleTheme={toggleTheme} /...
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/server/src/posts/postsController.ts
import { Request, Response, NextFunction } from 'express'; import { validationResult } from 'express-validator/check'; import isEmpty from '../utilities/isEmpty'; import checkLimit from '../utilities/checkLimit'; import passErrorToNext from '../utilities/passErrorToNext'; import isAuthorized from '../utilities/isAuthor...
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/server/src/communities/Community.ts
import Community from '../types/Community'; import mongoose, { Schema } from 'mongoose'; const CommunitySchema: Schema = new Schema({ name: { type: String, required: true, min: 4, max: 40 }, description: { type: String, required: true, min: 20, max: 100 }, user: { type: Schema.Types.ObjectId, ref: 'User',...
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/web/src/types/RuleFormValues.ts
<reponame>kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern<gh_stars>0 export default interface RuleFormValues { name: string; description: string; scope: 'Posts & comments' | 'Posts only' | 'Comments only'; }
kristiyan-ASW-G-08/fullstack-reddit-clone-ts-mern
packages/server/src/types/Ban.ts
<gh_stars>0 import Ban from '@rddt/common/types/Ban'; import { Document } from 'mongoose'; interface ExtendedBan extends Ban { user: string; bannedUser: string; rule: string | undefined; } type BanType = ExtendedBan & Document; export default BanType;