This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {http as _http, HttpAction, httpAction, HttpActionDecorator, httpClass} from "@deepkit/http"; | |
| import { | |
| createPropertyDecoratorContext, | |
| DualDecorator, | |
| mergeDecorator, | |
| PropertyDecoratorFn, | |
| ReceiveType | |
| } from "@deepkit/type"; | |
| import {ClassType,UnionToIntersection} from "@deepkit/core"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Cloudflare, | |
| CloudflarePages, | |
| CloudflareWorkers, | |
| } from '@catalyze/cloudflare'; | |
| import { DeploymentStage, Pipeline, catalyze } from '@catalyze/core'; | |
| import { BuildingStage } from '@catalyze/core/elements/stages/building-stage.js'; | |
| const backend = new CloudflareWorkers('backend', {}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const project = new PulumiProject('customers'); | |
| export const deployCustomers = new Pipeline('deploy-customers', { | |
| stages: [ | |
| new DeploymentStage('deploy', { atomic: true }) | |
| .withEnvironmentGroup(environmentGroups.customers) | |
| .forEachEnvironment((environment, stage) => { | |
| stage.addStep( | |
| new InfrastructureDeployStep('infrastructure', { | |
| target: new PulumiLocalStack('stack', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "title": "Person", | |
| "type": "object", | |
| "properties": { | |
| "traits": { | |
| "type": "object", | |
| "properties": { | |
| "sms": { | |
| "type": "string", | |
| "title": "Phone number", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { http, JSONResponse, HttpBody, HttpQueries } from '@deepkit/http'; | |
| import { entity } from '@deepkit/type'; | |
| import { createTestingApp } from '@deepkit/framework'; | |
| import { beforeEach, describe } from '@jest/globals'; | |
| import { fetchRequestHandler } from '../src'; | |
| import { App } from '@deepkit/app'; | |
| @entity.name('user') | |
| class User { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createTestingApp } from '@deepkit/framework'; | |
| import { ControllerSymbol, rpc } from '@deepkit/rpc'; | |
| import { entity } from '@deepkit/type'; | |
| import { | |
| webSocketFetchRequestHandler, | |
| CloudflareWorkerRpcWebSocketClient, | |
| } from '../src'; | |
| // https://miniflare.dev/testing/jest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -eo pipefail | |
| bazelBin=$(node -p "require('@bazel/bazel').getNativeBinary()") | |
| # Provide the bazel binary globally. We don't want to access the binary | |
| # through Node as it could result in limited memory. | |
| sudo chmod a+x ${bazelBin} | |
| sudo cp ${bazelBin} /usr/local/bin/bazel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface IBird { | |
| canFly(): boolean; | |
| } | |
| class Crow implements IBird { | |
| public canFly() { | |
| return true; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Route } from 'Titan/Http/Routing' | |
| @Route.group('threads') | |
| export class ThreadController { | |
| @Route.get(':id', { name: 'thread-comment' }) | |
| async comment({ request, response, id }) { | |
| // ... | |
| Route.generate('thread-comment', { id: 1 }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
NewerOlder