.
.
@sapphire/shapeshift validate env library
Yup
26 replies
@sapphire/shapeshift validate env library
need to figure this out to get my library to work
26 replies
@sapphire/shapeshift validate env library
Awaiting answers
26 replies
@sapphire/shapeshift validate env library
so if a function could be passed either s.string or s.number there would be no way within the function to determine if the parameter is s.string or s.number
26 replies
@sapphire/shapeshift validate env library
I know but is there any way to get the type of validator to determine how to parse the string
26 replies
@sapphire/shapeshift validate env library
All parseEnv does is parses env strings to the type passed (s.string, s.number, etc) and if it cannot be successfully parsed throws an error
26 replies
@sapphire/shapeshift validate env library
I'm aware, the library would parse the string depending on what type of validator if process.env is { PROCESS_ID: "1" } and the schema passed is { PROCESS_ID: s.number.int }. How would the library know what type of validator it is so that the parsing can be done so that the env value can match the validator
26 replies
@sapphire/shapeshift validate env library
the user of the library would do
parseEnv(process.env, {
DISCORD_TOKEN: s.string,
OWNERS: s.array(s.string);
})
parseEnv(process.env, {
DISCORD_TOKEN: s.string,
OWNERS: s.array(s.string);
})
how to tell what type of validator it is?
26 replies
@sapphire/shapeshift validate env library
Also is there any way to do coercion?
26 replies
@sapphire/shapeshift validate env library
Thank you, also is there a helper type to infer the actual object types from the schema
26 replies
how to make fetchPrefix return a regex?
Ah okay
5 replies
How would I go about forking a plugin? FInding some difficulty due to them being under a monorepo
is all that really necessary
10 replies
How would I go about forking a plugin? FInding some difficulty due to them being under a monorepo
but i'd just want to make a change in one plugin for my person bot
10 replies
yarn recommended over pnpm?
Also I've never used yarn before, it's kinda misleading how like the first 5 articles if you look up "yarn vs pnpm speed" or something of that sort say pnpm is leagues faster
14 replies
yarn recommended over pnpm?
neat thanks
14 replies
yarn recommended over pnpm?
oh wowza
14 replies
yarn recommended over pnpm?
I see. With that in mind, I decided to convert to yarn from pnpm. After running yarn install no node_modules/ folder is generated, why?
14 replies
lib folder
alright thanks!
6 replies
SIASapphire - Imagine a framework
Created by ShowCast on 2/28/2023 in #sapphire-support
Access extended sapphire client
thanks mayne it worked
14 replies
SIASapphire - Imagine a framework
Created by ShowCast on 2/28/2023 in #sapphire-support
Access extended sapphire client
14 replies