onix-chess
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -10,5 +10,5 @@ import { Colors } from './Types'; | ||
function flip(c: Colors.BW): Colors.BW; | ||
function isBW(c: number): c is Colors.BW; | ||
function isName(c: string): c is Colors.Name; | ||
function isChar(c: string): c is Colors.Char; | ||
function isBW(c?: number): c is Colors.BW; | ||
function isName(c?: string): c is Colors.Name; | ||
function isChar(c?: string): c is Colors.Char; | ||
function toName(c: Colors.BW): Colors.Name; | ||
@@ -15,0 +15,0 @@ function fromName(c: Colors.Name): Colors.BW; |
{ | ||
"name": "onix-chess", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "Onix chess library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -26,11 +26,11 @@ import { Colors } from './Types'; | ||
export function isBW(c: number): c is Colors.BW { | ||
export function isBW(c?: number): c is Colors.BW { | ||
return c === White || c === Black; | ||
} | ||
export function isName(c: string): c is Colors.Name { | ||
export function isName(c?: string): c is Colors.Name { | ||
return c === "white" || c === "black"; | ||
} | ||
export function isChar(c: string): c is Colors.Char { | ||
export function isChar(c?: string): c is Colors.Char { | ||
return c === "w" || c === "b"; | ||
@@ -37,0 +37,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
450696