.
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@sapphire/shapeshift validate env library
Yup
26 replies
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@sapphire/shapeshift validate env library
need to figure this out to get my library to work
26 replies
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@sapphire/shapeshift validate env library
Awaiting answers
26 replies
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@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
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@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
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@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
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@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 validator26 replies
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@sapphire/shapeshift validate env library
the user of the library would do
how to tell what type of validator it is?
26 replies
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@sapphire/shapeshift validate env library
Also is there any way to do coercion?
26 replies
SIASapphire - Imagine a framework
•Created by . on 11/17/2023 in #sapphire-support
@sapphire/shapeshift validate env library
Thank you, also is there a helper type to infer the actual object types from the schema
26 replies
SIASapphire - Imagine a framework
•Created by . on 11/8/2023 in #sapphire-support
how to make fetchPrefix return a regex?
Ah okay
5 replies
SIASapphire - Imagine a framework
•Created by . on 11/5/2023 in #sapphire-support
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
SIASapphire - Imagine a framework
•Created by . on 11/5/2023 in #sapphire-support
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
SIASapphire - Imagine a framework
•Created by . on 11/5/2023 in #sapphire-support
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
SIASapphire - Imagine a framework
•Created by . on 11/5/2023 in #sapphire-support
yarn recommended over pnpm?
neat thanks
14 replies
SIASapphire - Imagine a framework
•Created by . on 11/5/2023 in #sapphire-support
yarn recommended over pnpm?
oh wowza
14 replies
SIASapphire - Imagine a framework
•Created by . on 11/5/2023 in #sapphire-support
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
SIASapphire - Imagine a framework
•Created by . on 11/5/2023 in #sapphire-support
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