-
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.
feat: add support for
Omit<Type, Keys>
[converter] === changelog === ```ts export interface Todo { title: string; description: string; completed: boolean; createdAt: number; } export type TodoPreview = Omit<Todo, "description">; ``` ```fs [<AllowNullLiteral>] [<Interface>] type Todo = abstract member title: string with get, set abstract member description: string with get, set abstract member completed: bool with get, set abstract member createdAt: float with get, set [<AllowNullLiteral>] [<Interface>] type TodoPreview = abstract member title: string with get, set abstract member completed: bool with get, set abstract member createdAt: float with get, set ``` === changelog ===
- Loading branch information
1 parent
73d6cd7
commit 33955e3
Showing
20 changed files
with
348 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
interface Todo { | ||
title: string; | ||
description: string; | ||
} | ||
|
||
interface TodoExtra { | ||
completed: boolean; | ||
createdAt: number; | ||
} | ||
|
||
type TodoPreview = Omit<Todo & TodoExtra, "description">; |
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,29 @@ | ||
module rec Glutinum | ||
|
||
open Fable.Core | ||
open Fable.Core.JsInterop | ||
open System | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type Todo = | ||
abstract member title: string with get, set | ||
abstract member description: string with get, set | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type TodoExtra = | ||
abstract member completed: bool with get, set | ||
abstract member createdAt: float with get, set | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type TodoPreview = | ||
abstract member title: string with get, set | ||
abstract member completed: bool with get, set | ||
abstract member createdAt: float with get, set | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
#r "nuget: Glutinum.Types" | ||
(***) |
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,8 @@ | ||
export interface Todo { | ||
title: string; | ||
description: string; | ||
completed: boolean; | ||
createdAt: number; | ||
} | ||
|
||
export type TodoInfo = Omit<Todo, "completed" | "createdAt">; |
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,24 @@ | ||
module rec Glutinum | ||
|
||
open Fable.Core | ||
open Fable.Core.JsInterop | ||
open System | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type Todo = | ||
abstract member title: string with get, set | ||
abstract member description: string with get, set | ||
abstract member completed: bool with get, set | ||
abstract member createdAt: float with get, set | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type TodoInfo = | ||
abstract member title: string with get, set | ||
abstract member description: string with get, set | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
#r "nuget: Glutinum.Types" | ||
(***) |
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,6 @@ | ||
export interface Todo { | ||
completed: boolean; | ||
createdAt: number; | ||
} | ||
|
||
export type TodoInfo = Omit<Todo, "completed" | "remove-me-but-i-don-t-exist">; |
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 | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type Todo = | ||
abstract member completed: bool with get, set | ||
abstract member createdAt: float with get, set | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type TodoInfo = | ||
abstract member createdAt: float with get, set | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
#r "nuget: Glutinum.Types" | ||
(***) |
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 @@ | ||
export type MapboxOverlayProps = Omit<DeckProps, 'width'> |
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,15 @@ | ||
module rec Glutinum | ||
|
||
open Fable.Core | ||
open Fable.Core.JsInterop | ||
open System | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type MapboxOverlayProps = | ||
interface end | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
#r "nuget: Glutinum.Types" | ||
(***) |
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,6 @@ | ||
export interface Todo { | ||
completed: boolean; | ||
createdAt: number; | ||
} | ||
|
||
export type TodoInfo = Omit<Todo, "completed" | "createdAt">; |
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 | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type Todo = | ||
abstract member completed: bool with get, set | ||
abstract member createdAt: float with get, set | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type TodoInfo = | ||
interface end | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
#r "nuget: Glutinum.Types" | ||
(***) |
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,8 @@ | ||
export interface Todo { | ||
title: string; | ||
description: string; | ||
completed: boolean; | ||
createdAt: number; | ||
} | ||
|
||
export type TodoPreview = Omit<Todo, "description">; |
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,25 @@ | ||
module rec Glutinum | ||
|
||
open Fable.Core | ||
open Fable.Core.JsInterop | ||
open System | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type Todo = | ||
abstract member title: string with get, set | ||
abstract member description: string with get, set | ||
abstract member completed: bool with get, set | ||
abstract member createdAt: float with get, set | ||
|
||
[<AllowNullLiteral>] | ||
[<Interface>] | ||
type TodoPreview = | ||
abstract member title: string with get, set | ||
abstract member completed: bool with get, set | ||
abstract member createdAt: float with get, set | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
#r "nuget: Glutinum.Types" | ||
(***) |
Oops, something went wrong.