import { apiCallMethod } from "../internal/api" ; import { Resource } from "../types" ; export const makeResourceOfType = < T extends Resource < any , any , any > > ( apiVersion , kind ) => { return apiCallMethod < T > ( apiVersion . replace ( "/" , "." ) + "." + kind ) ; } ;