@genesis-xyz/overlay
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "@genesis-xyz/overlay", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { AssetIO } from './AssetIO'; | ||
@@ -31,1 +32,2 @@ import { AssetResult } from './AssetResult'; | ||
export type SomeAsset = Asset<unknown>; | ||
export type AnyAsset = Asset<any>; |
/* eslint-disable @typescript-eslint/no-non-null-assertion */ | ||
import type { AnyAsset, AssetTag } from './Asset'; | ||
import { AnyAssetRef, AssetRef, AssetRefKey, getAssetRefKey } from './AssetRef'; | ||
@@ -48,3 +49,5 @@ import { | ||
() => | ||
ref.asset.fn(ref.tag, async (getRef: AnyAssetRef) => { | ||
ref.asset.fn(ref.tag, async (asset: AnyAsset, tag: AssetTag) => { | ||
const getRef: AnyAssetRef = { asset, tag }; | ||
// Get the ref key for the dependency asset ref | ||
@@ -51,0 +54,0 @@ const depRefKey = getAssetRefKey(getRef); |
118824
545