chore: refactor to use opaque type helper instead

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-11-19 12:01:44 +01:00
parent aac1e45bc5
commit f217918b14
12 changed files with 110 additions and 62 deletions
@@ -26,7 +26,7 @@ export const mockDecorator = createScaffolderFormDecorator({
deps: {
githubApi: githubAuthApiRef,
},
fn: async ({ setSecrets }, { githubApi }) => {
decorator: async ({ setSecrets }, { githubApi }) => {
const token = await githubApi.getAccessToken();
setSecrets(state => ({ ...state, GITHUB_TOKEN: token }));
},