-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresult-str.ts
103 lines (92 loc) · 3.36 KB
/
result-str.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// =====================================================================;
// Sync Imports
// =====================================================================
import 'fs';
import * as Events from 'events';
import { APP_CONFIG } from '../../app-model/app-config';
import { Component, OnInit, OnDestroy, Inject } from '@angular/core';
// =====================================================================
// Extra Code
// =====================================================================
// - Write Extra File Code Here (e.g. Import { fakeJsonToReturn } from './someplace' )
// ---------------------------------------------------------------------
import { fakeJsonToReturn } from './someplace';
// =====================================================================
// Sync Stub Declarations
// =====================================================================
// - Feel free to define values for any synced declaration logic.
// - DO NOT RENAME ANY DECLARATION NAME BELOW inside here. The name itself
// is synced with the original file's /*StubNameComments*/ and all unmatched
// declarations will be moved to the archive section. The console will warn
// you if anything has been archived.
// ---------------------------------------------------------------------;
interface TypicalObj {
properties: boolean
}
var varDosStub = true,
varTresStub = 'Three';
export let numberStub = 123456;
export const addNumberButOutsideStub = (withParam, withOptionalParam) => {
return { obj: 'Arrow Return'};
};
export const updateArrowFunArgsStub = (one: number, two?: number) => {
return true;
};
export function hmmStub(thing: string, bur: number): number {
return false;
};
export function testStub(args: number, space: string) {
return 'The quick brown fox!';
};
@Component({
selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html',
styleUrls: ['./page-not-found.component.scss']
})
export class PageNotFoundComponentStub implements OnInit {
@complicatedDecorator(' css classes passed in with space ')
public static extraSpaces = undefined;
static classInfo() {
return 'This class handles page not found situations..';
}
protected static abc = undefined;
private static abcdefg = undefined;
private static set lostUrl(thing) {
return '404';
}
private static get test(): string {
return 'testStr';
}
arrowFuncWithStubImplementation = (value: string, ...args) => {
return { implemented: true, realImplementation: false };
};
arrowFuncPropWithArgumentsUpdating = (one: number, two: number): number => {
return 'one';
};
arrowFuncWithoutBody = () => 42;
public testPublic = undefined;
@public('publicHmm')
public publicHmm: publicHmm = undefined;
readonly readOnlyProperty = undefined;
private hmmm: string = 'testPropState';
constructor(
nakedDependency: Router,
@Inject(APP_CONFIG)
public appConfig: AppConfig,
private router: Router
){}
public leFourOFour(statusCode?: number): string {
return undefined;
}
get bur(): number {
return undefined;
}
private methodTwo() {
return undefined;
}
argumentsShouldUpdate(one: number, two: number) {
return { test: 'ok' };
}
};
// ====================================================================='
//