Giter Club home page Giter Club logo

Comments (7)

samsara-ku avatar samsara-ku commented on June 12, 2024

위의 문제와 관련있는 코드라인은 다음과 같습니다.

    ```ts twoslash
    // @errors: 2551
    const obj = { width: 10, height: 15 };
    const area = obj.width * obj.heigth;
    ```

    ### A Typed Superset of JavaScript

    How does TypeScript relate to JavaScript, though?

    #### Syntax

    TypeScript is a language that is a _superset_ of JavaScript: JS syntax is therefore legal TS.
    Syntax refers to the way we write text to form a program.
    For example, this code has a _syntax_ error because it's missing a `)`:

    ```ts twoslash
    // @errors: 1005
    let a = (4
    ```

from typescript-kr.github.io.

bumkeyy avatar bumkeyy commented on June 12, 2024

@samsara-ku

아마 gitbook-cli 에서 code block에 twoslash를 파싱하지 못해 생기는 오류같아요.
해당 code block에 twoslash를 제거하면 제대로 보일 것 같습니다.

번역하면서 같이 수정해주시겠어요?😃

from typescript-kr.github.io.

samsara-ku avatar samsara-ku commented on June 12, 2024

해당 내용 적용하니 마크다운은 적용되지만, 다음과 같이 마크다운에 적용되는 스타일은 없어지게 되네요. 어떻게 해야할까요?

아 또한 추가적인 질문이 있습니다!

추가한 이미지에서 볼 수 있듯이, 타입스크립트 영문 핸드북의 동일한 문서는 이슈에 제가 업로드한 이미지와 다르게 오류 부분에 대한 내용이 자세히 나와있는 것을 볼 수 있습니다.

해당 내용을 위의 @errors: 1005와 같은 부분을 갈음해서 번역하면 될까요?

image

@bumkeyy

from typescript-kr.github.io.

bumkeyy avatar bumkeyy commented on June 12, 2024

@samsara-ku

최대한 빨리 해결해야겠네요...
일단 @errors: 1005는 남겨놓는게 어떨까요?

전 나중에 twoslash 적용이 될 때
다시 바꾸거나 추가하는 것보다 일단은 있는게 나을 것 같습니다.

@guyeol @dvlprsh
어떻게 생각하세요?

from typescript-kr.github.io.

dvlprsh avatar dvlprsh commented on June 12, 2024

@bumkeyy @samsara-ku

일단 @errors: 1005는 남겨놓는게 어떨까요?

전 나중에 twoslash 적용이 될 때
다시 바꾸거나 추가하는 것보다 일단은 있는게 나을 것 같습니다.

동의합니다 :)

from typescript-kr.github.io.

guyeol avatar guyeol commented on June 12, 2024

@samsara-ku

최대한 빨리 해결해야겠네요...
일단 @errors: 1005는 남겨놓는게 어떨까요?

전 나중에 twoslash 적용이 될 때
다시 바꾸거나 추가하는 것보다 일단은 있는게 나을 것 같습니다.

@guyeol @dvlprsh
어떻게 생각하세요?

현재 상황에서 ts-twoslasher를 해결하기는 어려우니 파싱에러만 해결하고 일단 남기는것에 동의합니다 추후 수정할 때가 왔을 때 그게 더 편할 것 같네요

from typescript-kr.github.io.

bumkeyy avatar bumkeyy commented on June 12, 2024

해당 이슈는 일정 해결된걸로 보고 클로즈하겠습니다 :)

from typescript-kr.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.