# How to unlock JavaScript files

**URL:** <https://forum.makecode.com/t/how-to-unlock-javascript-files/6772>\
**Category:** Arcade\
**Created:** [March 14, 2021, 9:26pm UTC](https://forum.makecode.com/t/how-to-unlock-javascript-files/6772 "2021-03-14T21:26:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zip184](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/zip184/32/3584_2.png) [@zip184](https://forum.makecode.com/u/zip184)\
**Post date:** [March 14, 2021, 9:26pm UTC](https://forum.makecode.com/t/how-to-unlock-javascript-files/6772/1 "2021-03-14T21:26:34Z")

</div>

I’m trying to add a new SpriteKind and I’m not allowed to edit spritekind.ts. There’s a padlock on most of the files. Is there a way to unlock them?

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 14, 2021, 11:15pm UTC](https://forum.makecode.com/t/how-to-unlock-javascript-files/6772/2 "2021-03-14T23:15:12Z")

</div>

No there is not. You can instead create a custom.ts file. You can’t unlock them for security reasons.

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [March 14, 2021, 11:15pm UTC](https://forum.makecode.com/t/how-to-unlock-javascript-files/6772/3 "2021-03-14T23:15:15Z")

</div>

You can’t - but this is how you create a new Sprite kind:

```auto
namespace SpriteKind {
    export const YourNewKind = SpriteKind.create()
    export const AnotherNewKind = SpriteKind.create()
}

```

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [March 14, 2021, 11:18pm UTC](https://forum.makecode.com/t/how-to-unlock-javascript-files/6772/4 "2021-03-14T23:18:11Z")

</div>

Correct that those files can’t be editted, but minor clarification - it’s not security related / editting those files would in theory be fine for the most part. The issue is that the content of those files is defined elsewhere - either in the editor itself, or in an extension (or they’re generated files, e.g. the asset files you can edit through the asset editor) - so they’re files that can change independent of the project itself by e.g. a dependency being updated or a new version of the editor being released.

---

<div class="post-metadata">

**Author:** ![zip184](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/zip184/32/3584_2.png) [@zip184](https://forum.makecode.com/u/zip184)\
**Post date:** [March 16, 2021, 1:36am UTC](https://forum.makecode.com/t/how-to-unlock-javascript-files/6772/5 "2021-03-16T01:36:11Z")

</div>

This is all I needed. Thanks!
