Fix ts complaining about fn args.