Skip to main content
Module

x/netsaur/deps.ts>ensureDataType

Powerful machine learning, accelerated by WebGPU
Go to Latest
function ensureDataType
import { ensureDataType } from "https://deno.land/x/netsaur@0.1.2/deps.ts";

Ensures that all DataTypes match the type parameter

Parameters

type: T

The target DataType which we want all other types to match

...types: DataType[]

An arbitrary number of DataTypes which we want to match type

Returns

If successful type otherwise it throws a TypeError