let count = -1;
const array = ReadonlyArray<T>;
array.reduce<{[k in string]: T}>((acc: {[k in string]: T}, entry) => ({
// ^-->acc-type ^--->acc-type
count = count + 1;
This file contains 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
#include <cstdlib> | |
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
class BstNode { |
This file contains 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
console.log packages\neo-one-smart-contract-compiler\src\createContext.ts:132 | |
getScriptSnapshot fileName: C:\Users\Dan\desktop\neo-one\packages\neo-one-smart-contract\src\global.d.ts | |
console.log packages\neo-one-smart-contract-compiler\src\createContext.ts:126 | |
getScriptVersion fileNameIn: C:\Users\Dan\desktop\neo-one\packages\neo-one-smart-contract\src\global.d.ts | |
console.log packages\neo-one-smart-contract-compiler\src\createContext.ts:132 | |
getScriptSnapshot fileName: C:\Users\Dan\desktop\neo-one\packages\neo-one-smart-contract\src\sc.d.ts | |
console.log packages\neo-one-smart-contract-compiler\src\createContext.ts:126 |
This file contains 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
{"name":"unhandled_rejection","level":"error","message":"Unhandled rejection. Shutting down. IO error: C:\\Users\\Dan\\AppData\\Local\\neo-one\\Data\\plugin\\neo-one-server-plugin-network\\network\\manager\\resources\\neo-one-playground-local-42ad9c06-43c8-4c93-a375-9c454a3d0380\\nodes\\neo-one-playground-local-42ad9c06-43c8-4c93-a375-9c454a3d0380-0\\chain\\data/MANIFEST-000001: The system cannot find the path specified.\r\n","labels":{"error":true,"error.kind":"Error","service":"cli","component":"cli"},"data":{},"stack":"OpenError: IO error: C:\\Users\\Dan\\AppData\\Local\\neo-one\\Data\\plugin\\neo-one-server-plugin-network\\network\\manager\\resources\\neo-one-playground-local-42ad9c06-43c8-4c93-a375-9c454a3d0380\\nodes\\neo-one-playground-local-42ad9c06-43c8-4c93-a375-9c454a3d0380-0\\chain\\data/MANIFEST-000001: The system cannot find the path specified.\r\n\n at C:\\Users\\Dan\\Desktop\\neo-one-playground\\node_modules\\levelup\\lib\\levelup.js:87:23\n at C:\\Users\\Dan\\Desktop\\neo-one-playground |
This file contains 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 { merge, Observable, Observer } from 'rxjs'; | |
import { distinctUntilChanged, filter, scan } from 'rxjs/internal/operators'; | |
import { map } from 'rxjs/operators'; | |
import { unless } from '../shared/operators'; | |
export interface KeyEvent { | |
readonly keyCode: number; | |
} | |
export const keyEventStream = ( |
This file contains 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
export interface Foo {} | |
export class Bar { | |
public constructor() { | |
// | |
} | |
public do(): Foo { | |
return {}; | |
} | |
} |
This file contains 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 { Bar, bar } from './Bar'; | |
export function Foo(value: Bar): boolean { | |
if (value.fizz === bar.fizz) { | |
return true; | |
} | |
return false; | |
} |
This file contains 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 barInternal = 'bar'; | |
const bangInternal = 'bang'; | |
export const bar = barInternal; | |
const bang = bangInternal; | |
const fooInternal = 'foo'; | |
const fizzInternal = 'fizz'; | |
export const foo = fooInternal; | |
const fizz = fizzInternal; | |
export const newFizz = fizz; | |
export const newBang = bang; |
This file contains 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 s55 = 'bar'; | |
const bar = s55; | |
const fizz = 'bang'; | |
const sc1 = bar; | |
export const foo = sc1; | |
const fizz = 'bang'; | |
const parent = 'parent'; |
This file contains 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 { Foo } from '/Users/danielbyrne/neo-one/packages/neo-one-typescript-concatenator/src/__data__/test-directories/interfaces/base/child.ts'; | |
interface Bang { | |
readonly bang: Foo; | |
} | |
export interface Fizz { | |
readonly fizz: Bang; | |
} |
OlderNewer