@@ -236,14 +236,10 @@ const is = Object.assign(
236236boundFunction :isBoundFunction ,
237237buffer :isBuffer ,
238238class :isClass ,
239- /**@deprecated Renamed to `class`. */
240- class_ :isClass ,
241239dataView :isDataView ,
242240date :isDate ,
243241detect,
244242directInstanceOf :isDirectInstanceOf ,
245- /**@deprecated Renamed to `htmlElement` */
246- domElement :isHtmlElement ,
247243emptyArray :isEmptyArray ,
248244emptyMap :isEmptyMap ,
249245emptyObject :isEmptyObject ,
@@ -258,8 +254,6 @@ const is = Object.assign(
258254float64Array :isFloat64Array ,
259255formData :isFormData ,
260256function :isFunction ,
261- /**@deprecated Renamed to `function`. */
262- function_ :isFunction ,
263257generator :isGenerator ,
264258generatorFunction :isGeneratorFunction ,
265259htmlElement :isHtmlElement ,
@@ -282,8 +276,6 @@ const is = Object.assign(
282276nonEmptyString :isNonEmptyString ,
283277nonEmptyStringAndNotWhitespace :isNonEmptyStringAndNotWhitespace ,
284278null :isNull ,
285- /**@deprecated Renamed to `null`. */
286- null_ :isNull ,
287279nullOrUndefined :isNullOrUndefined ,
288280number :isNumber ,
289281numericString :isNumericString ,
@@ -403,7 +395,7 @@ export function isBuffer(value: unknown): value is Buffer {
403395return ( value as any ) ?. constructor ?. isBuffer ?.( value ) ?? false ;
404396}
405397
406- export function isClass ( value :unknown ) :value isClass {
398+ export function isClass < T = unknown > ( value :unknown ) :value isClass < T > {
407399return isFunction ( value ) && value . toString ( ) . startsWith ( 'class ' ) ;
408400}
409401
@@ -832,17 +824,9 @@ type Assert = {
832824bigint :( value :unknown , message ?:string ) => assertsvalue isbigint ;
833825// eslint-disable-next-line @typescript-eslint/ban-types
834826function :( value :unknown , message ?:string ) => assertsvalue isFunction ;
835- /**@deprecated Renamed to `function`. */
836- // eslint-disable-next-line @typescript-eslint/ban-types
837- function_ :( value :unknown , message ?:string ) => assertsvalue isFunction ;
838827// eslint-disable-next-line @typescript-eslint/ban-types
839828null :( value :unknown , message ?:string ) => assertsvalue isnull ;
840- /**@deprecated Renamed to `null`. */
841- // eslint-disable-next-line @typescript-eslint/ban-types
842- null_ :( value :unknown , message ?:string ) => assertsvalue isnull ;
843- class :( value :unknown , message ?:string ) => assertsvalue isClass ;
844- /**@deprecated Renamed to `class`. */
845- class_ :( value :unknown , message ?:string ) => assertsvalue isClass ;
829+ class :< T = unknown > ( value :unknown , message ?:string ) => assertsvalue isClass < T > ;
846830boolean :( value :unknown , message ?:string ) => assertsvalue isboolean ;
847831symbol :( value :unknown , message ?:string ) => assertsvalue issymbol ;
848832numericString :( value :unknown , message ?:string ) => assertsvalue is `${number } `;
@@ -902,8 +886,6 @@ type Assert = {
902886typedArray :( value :unknown , message ?:string ) => assertsvalue isTypedArray ;
903887arrayLike :< T = unknown > ( value :unknown , message ?:string ) => assertsvalue isArrayLike < T > ;
904888tupleLike :< T extends Array < TypeGuard < unknown > > > ( value :unknown , guards :[ ...T ] , message ?:string ) => assertsvalue isResolveTypesOfTypeGuardsTuple < T > ;
905- /**@deprecated Renamed to `htmlElement` */
906- domElement :( value :unknown , message ?:string ) => assertsvalue isHTMLElement ;
907889htmlElement :( value :unknown , message ?:string ) => assertsvalue isHTMLElement ;
908890observable :( value :unknown , message ?:string ) => assertsvalue isObservableLike ;
909891nodeStream :( value :unknown , message ?:string ) => assertsvalue isNodeStream ;
@@ -958,11 +940,9 @@ export const assert: Assert = {
958940boundFunction :assertBoundFunction ,
959941buffer :assertBuffer ,
960942class :assertClass ,
961- class_ :assertClass ,
962943dataView :assertDataView ,
963944date :assertDate ,
964945directInstanceOf :assertDirectInstanceOf ,
965- domElement :assertHtmlElement ,
966946emptyArray :assertEmptyArray ,
967947emptyMap :assertEmptyMap ,
968948emptyObject :assertEmptyObject ,
@@ -977,7 +957,6 @@ export const assert: Assert = {
977957float64Array :assertFloat64Array ,
978958formData :assertFormData ,
979959function :assertFunction ,
980- function_ :assertFunction ,
981960generator :assertGenerator ,
982961generatorFunction :assertGeneratorFunction ,
983962htmlElement :assertHtmlElement ,
@@ -1000,7 +979,6 @@ export const assert: Assert = {
1000979nonEmptyString :assertNonEmptyString ,
1001980nonEmptyStringAndNotWhitespace :assertNonEmptyStringAndNotWhitespace ,
1002981null :assertNull ,
1003- null_ :assertNull ,
1004982nullOrUndefined :assertNullOrUndefined ,
1005983number :assertNumber ,
1006984numericString :assertNumericString ,
@@ -1056,8 +1034,6 @@ const methodTypeMap = {
10561034isDataView :'DataView' ,
10571035isDate :'Date' ,
10581036isDirectInstanceOf :'T' ,
1059- /**@deprecated */
1060- isDomElement :'HTMLElement' ,
10611037isEmptyArray :'empty array' ,
10621038isEmptyMap :'empty map' ,
10631039isEmptyObject :'empty object' ,
@@ -1247,7 +1223,7 @@ export function assertBuffer(value: unknown, message?: string): asserts value is
12471223}
12481224}
12491225
1250- export function assertClass ( value :unknown , message ?:string ) : assertsvalue isClass {
1226+ export function assertClass < T > ( value :unknown , message ?:string ) : assertsvalue isClass < T > {
12511227if ( ! isClass ( value ) ) {
12521228throw new TypeError ( message ?? typeErrorMessage ( 'Class' , value ) ) ;
12531229}