Skip to content

Commit

Permalink
fix: Rendering works again
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Oct 23, 2020
1 parent 66a20d2 commit 17bf655
Show file tree
Hide file tree
Showing 64 changed files with 3,369 additions and 4,768 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -17,3 +17,4 @@ typedoc*.tgz
tmp

src/test/renderer/specs/assets/*
src/test/renderer/specs/specs.json
1 change: 1 addition & 0 deletions .prettierignore
Expand Up @@ -3,3 +3,4 @@ coverage
.nyc_output
src/test/renderer/specs
src/test/**/specs*.json
package-lock.json
4 changes: 2 additions & 2 deletions examples/basic/src/enumerations.ts
Expand Up @@ -62,15 +62,15 @@ export module Size {
/**
* A variable that is attached to an enumeration.
*/
let defaultSize: Size = Size.Medium;
export let defaultSize: Size = Size.Medium;

/**
* A function that is attached to an enumeration.
*
* @param value The value that should be tested.
* @returns TRUE when the given value equals Size.Small.
*/
function isSmall(value: Size): boolean {
export function isSmall(value: Size): boolean {
return value === Size.Small;
}
}
10 changes: 5 additions & 5 deletions examples/basic/src/functions.ts
Expand Up @@ -25,7 +25,7 @@ export function exportedFunction(): void {}
* ~~~
*
*/
let variableFunction = function (
export let variableFunction = function (
paramZ: string,
paramG: any,
paramA: classes.NameInterface
Expand Down Expand Up @@ -89,7 +89,7 @@ export function functionWithDefaults(
* @param rest Multiple strings.
* @returns The combined string.
*/
function functionWithRest(...rest: string[]): string {
export function functionWithRest(...rest: string[]): string {
return rest.join(", ");
}

Expand Down Expand Up @@ -151,17 +151,17 @@ export module moduleFunction {
/**
* This variable is appended to a function.
*/
let functionVariable: string;
export let functionVariable: string;

/**
* This function is appended to another function.
*/
function append() {}
export function append() {}

/**
* This function is appended to another function.
*/
function prepend() {}
export function prepend() {}
}

/**
Expand Down
13 changes: 2 additions & 11 deletions examples/basic/src/modules.ts
Expand Up @@ -32,10 +32,6 @@ export module MyModule {
}

export let exportedModuleVariable = "foo";

let moduleVariable = [100, 200];

let moduleVariable2: number[];
}

/**
Expand All @@ -51,15 +47,10 @@ export module MyModule.MySubmodule {
*/
export let exportedGlobalVariable = "foo";

/**
* A non-exported global variable.
*/
let globalVariable = "foo";

/**
* An object literal.
*/
let objectLiteral = {
export let objectLiteral = {
valueZ: "foo",
valueY: function () {
return "foo";
Expand All @@ -75,7 +66,7 @@ let objectLiteral = {
valueB: true,
};

let typeLiteral: {
export let typeLiteral: {
(): string;
valueZ: string;
valueY: { (): string };
Expand Down

0 comments on commit 17bf655

Please sign in to comment.