-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
13 changed files
with
149 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
9 changes: 9 additions & 0 deletions
9
tests/specs/references/documentation/example/codeBlockWithLang.d.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* @example | ||
* Here's an example with negative numbers: | ||
* ```js | ||
* // Prints "0": | ||
* console.log(add(1,-1)); | ||
* ``` | ||
*/ | ||
declare function isInlineTag(tagName: string): boolean; |
21 changes: 21 additions & 0 deletions
21
tests/specs/references/documentation/example/codeBlockWithLang.fsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module rec Glutinum | ||
|
||
open Fable.Core | ||
open Fable.Core.JsInterop | ||
open System | ||
|
||
[<Erase>] | ||
type Exports = | ||
/// <example> | ||
/// Here's an example with negative numbers: | ||
/// <code lang="js"> | ||
/// // Prints "0": | ||
/// console.log(add(1,-1)); | ||
/// </code> | ||
/// </example> | ||
[<Import("isInlineTag", "module")>] | ||
static member isInlineTag (tagName: string) : bool = nativeOnly | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
(***) |
16 changes: 16 additions & 0 deletions
16
tests/specs/references/documentation/example/multiple.d.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Adds two numbers together. | ||
* @example | ||
* Here's a simple example: | ||
* ``` | ||
* // Prints "2": | ||
* console.log(add(1,1)); | ||
* ``` | ||
* @example | ||
* Here's an example with negative numbers: | ||
* ``` | ||
* // Prints "0": | ||
* console.log(add(1,-1)); | ||
* ``` | ||
*/ | ||
declare function add(a: number, b: number): number; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module rec Glutinum | ||
|
||
open Fable.Core | ||
open Fable.Core.JsInterop | ||
open System | ||
|
||
[<Erase>] | ||
type Exports = | ||
/// <summary> | ||
/// Adds two numbers together. | ||
/// </summary> | ||
/// <example> | ||
/// Here's a simple example: | ||
/// <code> | ||
/// // Prints "2": | ||
/// console.log(add(1,1)); | ||
/// </code> | ||
/// </example> | ||
/// <example> | ||
/// Here's an example with negative numbers: | ||
/// <code> | ||
/// // Prints "0": | ||
/// console.log(add(1,-1)); | ||
/// </code> | ||
/// </example> | ||
[<Import("add", "module")>] | ||
static member add (a: float, b: float) : float = nativeOnly | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
(***) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* @example | ||
* Here's an example with negative numbers: | ||
* ``` | ||
* // Prints "0": | ||
* console.log(add(1,-1)); | ||
* ``` | ||
*/ | ||
declare function isInlineTag(tagName: string): boolean; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module rec Glutinum | ||
|
||
open Fable.Core | ||
open Fable.Core.JsInterop | ||
open System | ||
|
||
[<Erase>] | ||
type Exports = | ||
/// <example> | ||
/// Here's an example with negative numbers: | ||
/// <code> | ||
/// // Prints "0": | ||
/// console.log(add(1,-1)); | ||
/// </code> | ||
/// </example> | ||
[<Import("isInlineTag", "module")>] | ||
static member isInlineTag (tagName: string) : bool = nativeOnly | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
(***) |